The Source for Java Technology Collaboration

Home » java.net Forums » Java Desktop Technologies » Swing & AWT

Thread: setEnabled() doesn't disable all the child components

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Last Post: Jan 26, 2007 9:25 AM by: Richard Bair
lmineiro

Posts: 13
setEnabled() doesn't disable all the child components
Posted: Jan 26, 2007 9:22 AM
  Click to reply to this thread Reply

Hi,

I've always used GUIs where by only disabling some container, all the components inside that container would be disabled too. Same thing when I re-enable them.

With swing/awt it doesn't seem to work that way. Is there an explanation for this behavior or am I missing something?

Thanks in advance.

Richard Bair
Re: setEnabled() doesn't disable all the child components
Posted: Jan 26, 2007 9:25 AM   in response to: lmineiro
  Click to reply to this thread Reply

You are correct, it doesn't work that way. There has been quite a bit
of research on the subject, both here and in SwingLabs. Basically,
there isn't an easy answer that works in the general case. If you
search the SwingLabs forums (http://forums.java.net/jive/forum.jspa?
forumID=73), then you should find more info, in addition to some code
that might work in your case.

Richard

On Jan 26, 2007, at 9:22 AM, swing@javadesktop.org wrote:

> Hi,
>
> I've always used GUIs where by only disabling some container, all
> the components inside that container would be disabled too. Same
> thing when I re-enable them.
>
> With swing/awt it doesn't seem to work that way. Is there an
> explanation for this behavior or am I missing something?
>
> Thanks in advance.
> [Message sent by forum member 'lmineiro' (lmineiro)]
>
> http://forums.java.net/jive/thread.jspa?messageID=198840





 XML java.net RSS