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

Specify that JInternalFrame may behave incorrecly outside of a JDesktopPane

XMLWordPrintable

    • generic, unknown
    • generic, other

      The specification of JIF states:

      **************************************
      Generally, you add JInternalFrames to a JDesktopPane. The UI delegates the look-and-feel-specific actions to the DesktopManager object maintained by the JDesktopPane.
      **************************************

      In some cases JIFs work perfectly fine in other containers (JPanel, etc.). But in some cases, especially when lightweight and heavyweight components are mixed in a component hierarchy, that is essential to put JIFs into the DesktopPane since the latter provides some additional support (like validating the component hierarchy, etc.) which the mixing feature relies upon. Therefore, it is suggested to extend the specification and additionally state:

      **************************************
      If a JIF object is added to a container other than JDP, certain features or capabilities may behave incorrectly. This includes but is not limited to the behavior when lightweight and heavyweight components are mixed in a component hierarchy (see {@link Component}): some heavyweight components may be displayed incorrectly.
      **************************************

            alexp Alexander Potochkin (Inactive)
            anthony Anthony Petrov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: