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

XAWT: Frame.setMaximizedBounds restricts resizing

XMLWordPrintable

    • Fix Understood
    • generic, x86, arm
    • generic, linux, linux_redhat_5.0

      Frame.setMaximizedBounds restricts resizing of Frame to specified dimensions.

      import java.awt.*;
      import java.awt.event.*;

      ---Test.java---
      public class Test {

          public static void main(String[] args) {
              Frame f = new Frame("test frame");
              f.setMaximizedBounds(new Rectangle(0, 0, 400, 400));
              f.setBounds(100, 100, 200, 200);
              f.setVisible(true);
          }
      }
      ---Test.java---

      1. Compile and run Test.java
      2. Try to enlarge the frame. If Frame's maximum size is restricted with (400, 400), the bug is reproduced.

      The bug is reproducible always with JDK6 b95 on several WMs, namely gnome & KDE

            Unassigned Unassigned
            vbaranovsunw Vyacheslav Baranov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: