S
Soundar
Question 1:
---------------
If I set a JPanel to not enabled
pane.setEnabled(false);
I am still able to select the components that are the panel's children.
Coming from a VB background, I find this strange. Am I doing something
wrong? Do I have to disable each child one by one?
Question 2:
--------------
The JCheckbox component has a constructor
JCheckbox (String label, Icon icon)
But do I not need two icons, one when it is checked and another one
when it is unchecked? I tried this constructor and of course the image
does not change whether it is checked or unchecked.
Thanks
---------------
If I set a JPanel to not enabled
pane.setEnabled(false);
I am still able to select the components that are the panel's children.
Coming from a VB background, I find this strange. Am I doing something
wrong? Do I have to disable each child one by one?
Question 2:
--------------
The JCheckbox component has a constructor
JCheckbox (String label, Icon icon)
But do I not need two icons, one when it is checked and another one
when it is unchecked? I tried this constructor and of course the image
does not change whether it is checked or unchecked.
Thanks