[1424] in java-interest
Simple window question...
daemon@ATHENA.MIT.EDU (Scot Shinderman)
Fri Sep 1 18:01:28 1995
Date: Fri, 1 Sep 1995 12:11:42 -0700
To: java-interest@java.sun.com
From: sshinder@adobe.com (Scot Shinderman)
Hello Javites,
I would like to get a simple window up, pass the o.s-specific window
handle (HWND in windows, WindowPtr in Mac, Widget in X) but I can't even get
the first step off the ground. Any ideas about the following code to just
show a "main" window? I don't get an error, the machine just sits there
until I hit control-c.
-- thanks, and please mail answers to sshinder@adobe.com
-- scot
package Pooh;
import java.util.Linker;
import awt.Window;
import awt.WServer;
import awt.Color;
import awt.Container;
import awt.Component;
import awt.Frame;
public class Fenetre extends Frame
{
static WServer server = null;
public Fenetre( WServer serv, String args[] )
{
super( serv, true, null, 400, 300, Color.lightGray );
try
{
super.setTitle( "test" );
serv.sync();
}
catch( Exception e )
{
System.out.println( "Caught an error in constructor.\n" );
}
}
public static void main( String args[] )
{
try
{
server = new WServer();
server.start();
Fenetre i = new Fenetre( server, args );
}
catch( Exception e )
{
System.out.println( "Caught an error in main.\n" );
}
}
}
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com