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

Reopen 6383434: Frame.setMaximumSize() doesn't work

    XMLWordPrintable

Details

    • generic, x86
    • generic, linux, windows_xp, windows_2008, windows_vista, windows_7

    Description

      The CR 6383434 was closed as duplicate by mistake.

      Look at the sample below:

      import java.awt.*;

      public class Test extends Frame {
          public Test() {
              setMinimumSize(new Dimension(400, 400));
              setMaximumSize(new Dimension(400, 400));
              setSize(400, 400);
              setVisible(true);
          }

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

      When I run the code above I cannot decrease the size of the Frame less than [400,400]. But at the same time I *can* increase the size of the Frame. It seems we have some inconsistency: setMinimumSize does work whereas setMaximumSize doesn't work.

      The test is running on jdk6 b69.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Imported:
                Indexed: