-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.1.3
-
sparc
-
solaris_2.5.1
On Solaris, dialogs with the re-sizable attribute set to false can
be re-sized.
To recreate, start the application given below, and attempt to
re-size the dialog that comes up by dragging a corner with the mouse.
On Solaris, it is possible to re-size the dialog.
========================================================================
/* DialogBug.java
* Displays a dialog with the re-sizable attribute set to false
*/
import java.awt.*;
import java.awt.event.*;
import java.applet.Applet;
public class DialogBug extends Applet
{
static Frame theFrame;
static Dialog dialog;
public DialogBug() {
theFrame = new Frame();
dialog = new Dialog(theFrame, "Un-resizable Dialog");
}
public static void main(String s[]) {
DialogBug displayer = new DialogBug();
theFrame.add("Center", displayer);
theFrame.pack();
dialog.setSize(200, 200);
dialog.setResizable(false);
dialog.setVisible(true);
theFrame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
if (dialog != null)
dialog.dispose();
theFrame.dispose();
System.exit(0);
}
public void windowClosed(WindowEvent e) {
if (dialog != null)
dialog.dispose();
theFrame.dispose();
}
});
}
public void start() {}
public void stop() {}
public void destroy() {}
}
========================================================================
Name: rrT76497 Date: 05/06/98
ksuresh/SIPTech May 06,98. This bug is already in db.
======================================================================
- duplicates
-
JDK-4115213 Dialog.setResizable(false) does not work.
-
- Resolved
-