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

Frame.setMaximumSize() doesn't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      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

              Assignee:
              vbaranovsunw Vyacheslav Baranov (Inactive)
              Reporter:
              ydanilev Yury Danilevich (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: