Recommended: Sing it, brah! 5 fabulous songs for developers
JW's Top 5
I was asking how could i create dynamic check boxes in java on a button press,especially without knowing the bounds of each check box.Then remove all checked boxes on another button press.Here is my manually created check boxes code
cb1=new JCheckBox("Task 1");
cb2=new JCheckBox("Task 2");
cb3=new JCheckBox("Task 3");
cb4=new JCheckBox("Task 4");
cb5=new JCheckBox("Task 5");
cb6=new JCheckBox("Task 6");
addTask= new JButton("Add Task");
removeTask= new JButton("Remove Checked");
addTask.addActionListener(this);
removeTask.addActionListener(this);