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

Issues when resizing the frame after mixing of heavy weight & light weight components

XMLWordPrintable

    • generic, x86
    • generic, windows_xp

      Issue # 1 with java.awt.Frame
      ------------------------------
      I have a frame with two panels. JPanel with one awt button & a swing button added to the north of the frame & it is set with yellow background color . AWT panel with awt button & a JButton added to the south of the frame & it is set with green background color. When i resize the frame, i can see that JPanel is not getting resize properly along with the mouse movement & AWT Button impression can be seen & making the frame smaller , AWT button is seen on the JButton & it is erased for a while atleast for a second or two. Another issue is that swing button added to the AWT Panel flicker while resizing the frame.

      Issue # 2 with javax.swing.JFrame
      ---------------------------------
      Adding the same components to the JFrame & repeating the same scenario, painting artifacts can been.

      Step to reproduce:-
      -------------------
      Issue #1
      --------
      1) Run the attached testcase.
      2) Resize the frame. Observe that north panel yellow color is not getting resize properly along with the mouse movement & south green color panel, the swing button flickers . If you see the same , then the bug is reproduced.

      Issue # 2
      ---------
      Change Frame to JFrame & uncomment the commented lines.
      1) Run the attached testcase.
      2) Resize the frame, Observe while resizing painting artifacts is seen for few seconds say 1 to 2 seconds. If you see the same then the bug is reproduced.
      Failed test:
      AWT_Mixing/Automated/OtherOverlapping/MixingPanelsResizing.java jtreg

            Unassigned Unassigned
            lpremkumsunw Lawrence Premkumar1 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: