Hi everyone,
I'm just trying to work out the best way to replicate a pretty useful feature of Windows' Forms.Panel
in Java. Basically, when you disable a Windows Forms.Panel
, all child control's are set to disabled too. However, their enabled property is preserved such that, when the the Panel
is enabled again, any child control that was disabled before the Panel was disabled, remains disabled.
I can add a property listener for a JPanel
to be triggered when it's enabled property is changed and then cycle through all the JPanel
's components and set them to disabled, but this wont preserve the component's enabled properties.
Any suggestions?