Dear ,
I have the following method that disable all the components in a JPanel;
It has a JLabel, JTextField, and a JButton.
When I call this method from the constructor of the parent class; It is only disabling the JLabel, and the JTextField.
If I extend this class from another class, and call this method; None of the components are disabled.
public void disablePanel()
{
myPanel.setEnabled(false);
allCom = myPanel.getComponents();
for (int i = 0 ; i < allCom.length; i++)
allCom.setEnabled(false);
}
Would any one, suggest what might the reason be?
Best Regards,
M. Tleis