954,536 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

calling the internet browser from a java applet

Hey all. I am attempting to build a java applet with just a textfield and a button for a search on a web site. When the button is pushed, I have it set up to look at what the user typed into the textfield and then match it to either a UPS tracking number, an ebay product number, or just a search for an item on ebay. I have figured out how to do all of this, but then is it possible for the applet to open up a new browser window and go to an address I plug in?

stupidenator
Junior Poster
192 posts since Mar 2005
Reputation Points: 18
Solved Threads: 4
 

Hi everyone,

If you are talking about internet explorer then you can use the runtime class but you can also use the JEditorPane as it renders most of the html of a web page correctly

Richard West

freesoft_2000
Practically a Master Poster
623 posts since Jun 2004
Reputation Points: 25
Solved Threads: 10
 

what I mean is I have created the search bar. when someone pushes the search button, I want the applet to open a new browser window to a URL that's based on the user's input, but I don't know how and I'm confused on what to search by for it.

stupidenator
Junior Poster
192 posts since Mar 2005
Reputation Points: 18
Solved Threads: 4
 

That should be impossible. The applet sandbox prevents applets from doing ANYTHING on the client computer, and that includes opening browser windows.
This is for security reasons.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

alright ya that's what i thought.. thanks

stupidenator
Junior Poster
192 posts since Mar 2005
Reputation Points: 18
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You