Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6720897

Ability to layout invisible components

    • 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&#267880

      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

            Unassigned Unassigned
            ryeung Roger Yeung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: