|
-
February 25th, 1999, 04:31 PM
#1
Opening Webpages in a given frame when...
I'm new to java, and swing. I've created a small applet that uses menus and tool bars, but I cannot figure out how to make it so that when a menu item is clicked on a webpage opens in a certain frame.
I know how to handle the action of the menu being clicked on. I just need the code to open the webpage in a given frame.
Thanks,
Mike
-
February 27th, 1999, 06:09 PM
#2
Re: Opening Webpages in a given frame when...
Hi Mike
Its very simple to open an url from existing applet.
just try it
step 1: AppletContext ac = getAppletContext();
step 2: ac.showDocument(new URL("http://www.java.sun.com"));
catch MalforedURLException here
Write the step 2 in event handling method etc.
Actully I have Checked now .& I found it works well
Have a nice testing
bye
:[email protected]
:[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|