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

Resizing doesn't change the size of the content

XMLWordPrintable

    • x86
    • linux

      the steps to reproduce the problem

      1. run the testcase (the source code are below)
      just a frame and a button inside the frame
      2. resize the frame
      3. the size of the button will not be adjusted to the size of the frame

      ================= source code =====================
      import java.awt.*;

      public class test{
          public static final void main(String args[]) {
              Frame fr = new Frame();
              fr.setBounds(0,0,200,200);
              Button button = new Button("button");
              button.setBackground(Color.RED);
              fr.add(button);
              fr.setVisible(true);
          }
      }
      ====================================================

      platform: ubuntu, metacity window manager
      jdk: latest jdk7 build

      the problem is reproducible since jdk7 b25

            anthony Anthony Petrov (Inactive)
            dcherepanov Dmitry Cherepanov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: