-
Enhancement
-
Resolution: Unresolved
-
P4
-
7
-
x86
-
windows_vista
A DESCRIPTION OF THE REQUEST :
Please define SwingUtilities.layout(JComponent invisibleComponent) to force the layout of a component without making it visible.
Users who wish to layout invisible components need to execute unsafe, unportable "magic" code. For example, see http://forums.java.net/jive/thread.jspa?messageID=267757񁙨
The above code works fine for JPanel but fails for JTree. Clearly developers would benefit if this code were folded into the Core API and made portable across all JDKs and all AWT/Swing components.
JUSTIFICATION :
There is no way to portably layout components, for printing, saving to disk, etc.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Ability to layout component without a native/visible peer
Please define SwingUtilities.layout(JComponent invisibleComponent) to force the layout of a component without making it visible.
Users who wish to layout invisible components need to execute unsafe, unportable "magic" code. For example, see http://forums.java.net/jive/thread.jspa?messageID=267757񁙨
The above code works fine for JPanel but fails for JTree. Clearly developers would benefit if this code were folded into the Core API and made portable across all JDKs and all AWT/Swing components.
JUSTIFICATION :
There is no way to portably layout components, for printing, saving to disk, etc.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Ability to layout component without a native/visible peer