I'm a beginner in java and I have a gui in java that has two rows of 3 checkboxes ! I want to enable the second row according to the checkboxes that are check in the first ! For example if I check the first row first checkbox , then the sexond row first checkbox to be enabled !In other words I want the checkboxes in the second row to be unable to be checked unless a checkbox from the first row is checked ! I have tried almost every method from the oracle's documentation but nothing works ! Any idea will be helpful !
EDIT :
GetButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if(!cEntertainment.isSelected() && !cEducation.isSelected() && !cFood.isSelected()){
textArea.setText("Error ! Please select a Category and THEN a Type !");
cDrink.setEnabled(false);
}
}
});