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

Lightweight container does not layout heavyweight component(s) correctly

XMLWordPrintable

    • b01
    • sparc
    • solaris_2.5.1
    • Not verified

      When a heavyweight component (e.g. Label, Canvas etc) is added to a lightweight container, its position cannot be changed by its container regardless of the layout manager used (e.g. FlowLayout, BorderLayout etc).

      In the attached files, LWContainer is the test container. It contains two components, LWRect and Label/LWLabel. LWLabel is a lightweight version of Label. When LWLabel is used, the layout of the LWContainer instance is fine. But if Label is used in place of LWLabel, after the initial setup, the Label not longer responds to the changes in its container's layout. For example, resize the parent frame, notice that all the Labels remain in the original location.

      sofyan.nugroho@Eng 1997-04-25

            tprinzing Tim Prinzing
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: