Solved

Calling new HTML page from an applet

Posted on 2002-04-16
2
214 Views
Last Modified: 2010-03-30
All,
     I have the following code:
class Bookmark{
   String name;
   URL url;
   Bookmark(String name, String theURL){
      this.name = name;
      try { this.url = new URL(theURL);}
     
            System.out.println("Bad URL: " + theURL);
      }
   }
}
This code will bring up a new url on a given condition.  This works great! Sort of....
This will bring up the url in my current browser, I want it to bring up the url in a
seperate browser.  Can anybody tell me how to do this?

Thanx!
0
Comment
Question by:afsac
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
mrowka earned 100 total points
ID: 6945370
try using the target parameter "_blank" of
the showDocument method in the applet context:

AppletContext myContect = getAppletContext();
myContect.showDocument(url, "_blank" );

for more info see:

http://java.sun.com/j2se/1.4/docs/api/java/applet/AppletContext.html
0
 

Author Comment

by:afsac
ID: 6945507
Worked like a charm!  Thank you ever so much!!!!!!!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question