Hy everybody,
I'm trying to use getAppletContext in Japplet, it works in the event
handlers, but it does not work in the constructor method of the JApplet.
Why? Is there any other method to get the (swing) JApplet context?
By the way, I just wanna get to another page using this:
try{
URL surftoURL = new URL("http://balu.eet.bme.hu/~ferenczi/akarmi");
InputStream in = surftoURL.openStream();
int input = in.read();
in.close();
getAppletContext().showDocument(surftoURL,"_self");
}
catch (MalformedURLException e) {System.err.println(" Malformed URL \n" +e); }
catch (SecurityException e) { System.err.println(" Security problem\n " +e); }
catch (IOException e) { System.err.println(" IO problem \n" +e); }
Does anybody know a better solution to go to another page ?
Thanks,
George
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]