Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

disable the whole jpanel

843806Jul 30 2009 — edited Jul 31 2009
I have a JPanel with some components in it (including nested Jpanels). I wan't to disable all the components inside the Jpanel. I know that this can be done by traversing the component tree using recursion. I have tried panel.setEnabled(false), but it has no effect. Any other simpler way to achieve this ?

regards,
nirvan.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2009
Added on Jul 30 2009
4 comments
296 views