Question on JPanel

From: Soundar (kodavasal_at_hotmail.com)
Date: 01/30/05


Date: 30 Jan 2005 14:49:24 -0800

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. If you disable a
panel, all its children should be automatically disabled. Am I doing
something
wrong? Do I have to disable each child one by one?
-----------
I am reposting this question since I did not get a response to a
previous post of the same question...probably no one read it :-)



Relevant Pages

  • Re: Copying JPanel components to another JPanel
    ... to empty the original JPanel. ... int numComponents = jPanel1.getComponentCount; ... The Component is first removed from its previous parent, if it is a child of any parent ...
    (comp.lang.java.gui)
  • Re: Question on JPanel
    ... > If I set a JPanel to not enabled ... > Coming from a VB background, I find this strange. ... > panel, all its children should be automatically disabled. ... Do I have to disable each child one by one? ...
    (comp.lang.java.programmer)
  • mouselisteners of child and parent component both get events?
    ... If I add a component to a component like a JPanel ... can I make the MouseListeners of both the child and parent ...
    (comp.lang.java.gui)