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

Frame flickers on diagonal resize on Win32

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.3.0
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      x86
    • OS:
      windows_nt

      Description

      When a JFrame app is resized (enlarged) diagonally on Win32 it flickers a lot. This does not happen on horizontal or vertical resize.
      You can use the following testcase to reproduce the problem:

      import com.sun.java.swing.*;
      import java.awt.*;
      import java.awt.event.*;

      public class TestApp extends JFrame
      {
      public TestApp() {
      super("TestApp");

      this.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent ev) {
      System.exit(0);
      }
      });

      JPanel panel = new JPanel(new BorderLayout());
      panel.add(new JButton("West"), BorderLayout.WEST);
      panel.add(new JButton("East"), BorderLayout.EAST);
      panel.add(new JButton("North"), BorderLayout.NORTH);
      panel.add(new JButton("South"), BorderLayout.SOUTH);
      panel.add(new JButton("Center"), BorderLayout.CENTER);
      this.setContentPane(panel);

      this.pack();
      this.setVisible(true);
      }

      public static void main(String[] args) {
      new TestApp();
      }
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peterz Peter Zhelezniakov
                Reporter:
                rkarsunw Ralph Kar (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: