JDK-4092472 : Frames - Defining a frame with small width
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.4
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_95
  • CPU: x86
  • Submitted: 1997-11-12
  • Updated: 2000-01-06
  • Resolved: 2000-01-06
Related Reports
Duplicate :  
Description

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)
======================================================================

Comments
WORK AROUND Name: rm29839 Date: 11/12/97 ======================================================================
11-06-2004