Article View: borland.public.jbuilder.java.language
Article #15776JDialog not resizable
From: Christian Wohne
Date: Wed, 28 Apr 1999 00:00
Date: Wed, 28 Apr 1999 00:00
31 lines
1260 bytes
1260 bytes
hello,
a simple JDialog created with JBuilder (see below) called with
new TestDialog(this, "Test", false).setVisible(true);
is not resizable by the user. even setResizable(true) makes no change.
how can i enable resizing?
public TestDialog(Frame frame, String title, boolean modal) {
super(frame, title, modal);
try {
jbInit();
pack();
setResizable(true);
}
catch (Exception ex) {
ex.printStackTrace();
}
}
void jbInit() throws Exception {
panel1.setLayout(borderLayout1);
jTextField1.setText("jTextField1");
getContentPane().add(panel1);
panel1.add(jTextField1, BorderLayout.CENTER);
}
--
e-mail: christian@wohne.de
www: http://www.wohne.de
Technical Details
Message-ID:
<372764F6.A8B45021@wohne.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,c4387dd0a67769d6,start X-Google-Attributes: gidf74b3,public From: Christian Wohne <christian@wohne.de> Subject: JDialog not resizable Date: 1999/04/28 Message-ID: <372764F6.A8B45021@wohne.de> X-Deja-AN: 472199555 Content-Transfer-Encoding: 7bit X-Accept-Language: de,en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language