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

Frames - Defining a frame with small width

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.4
    • client-libs
    • x86
    • windows_95



      Name: rm29839 Date: 11/12/97


      We are using something like this:

      import java.awt.Frame;
      import java.awt.event.WindowEvent;
      import java.awt.event.WindowAdapter;

      public class BugTest extends Frame
      {
          public BugTest()
          {
              super();
              this.setSize(30,400);
              this.setVisible(true);
              this.addWindowListener(new CloseWindow());
          }

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

          public class CloseWindow extends WindowAdapter
          {
              public void windowClosing(WindowEvent e)
              {
                  ((Frame) e.getSource()).dispose();
                  System.exit(0);
              }
          }
      }

      We want to make something like a Toolbar. This Toolbar will be the "Main menu" of our aplication.
      But, we want to put small buttons inside it.
      It is impossible. We can't make a Frame with a small width. There is a minimum size of Frame ?
      (Review ID: 19618)
      ======================================================================

            rraysunw Richard Ray (Inactive)
            rmandelsunw Ronan Mandel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: