[6501] in java-interest
Re: A Query on Windowing
daemon@ATHENA.MIT.EDU (Stefan Fasth)
Mon Apr 1 05:27:56 1996
Date: Mon, 1 Apr 1996 11:07:09 +0200
Reply-To: Java Interest <JAVA-INTEREST@JAVASOFT.COM>
From: Stefan Fasth <d1red@DTEK.CHALMERS.SE>
To: Multiple recipients of list JAVA-INTEREST
<JAVA-INTEREST@JAVASOFT.COM>
To create new windows just make a new instance of Dialog,
Window, Frame,... or whatever it is that you want.
A quick example:
public class InfoDialog extends java.awt.Dialog {
protected TextArea text;
/**
* Build a dialog to show some text.
*/
InfoDialog(Applet parent, String title) {
super((Frame)parent, title, false);
.
.
.
And in your Applet:
InfoDialog info = new InfoDialog(this, "Hello Word!");
info.show()
.
.
.
--
Stefan Fasth d1red@dtek.chalmers.se
http://www.dtek.chalmers.se/~d1red/
-----
This message has been forwarded via the JAVA-INTEREST
mailing list. In order to unsubscribe from this list, send a message to
listserv@javasoft.com with the command 'signoff JAVA-INTEREST' in
the message body (not in the subject line).