calling the internet browser from a java applet

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Mar 2005
Posts: 192
Reputation: stupidenator is an unknown quantity at this point 
Solved Threads: 4
stupidenator's Avatar
stupidenator stupidenator is offline Offline
Junior Poster

calling the internet browser from a java applet

 
0
  #1
Mar 28th, 2005
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?
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 609
Reputation: freesoft_2000 is an unknown quantity at this point 
Solved Threads: 8
freesoft_2000 freesoft_2000 is offline Offline
Practically a Master Poster

Re: calling the internet browser from a java applet

 
0
  #2
Mar 28th, 2005
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
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond

Tell me what type of software do you like and what would you pay for it

http://www.daniweb.com/techtalkforums/thread19660.html
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 192
Reputation: stupidenator is an unknown quantity at this point 
Solved Threads: 4
stupidenator's Avatar
stupidenator stupidenator is offline Offline
Junior Poster

Re: calling the internet browser from a java applet

 
0
  #3
Mar 28th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: calling the internet browser from a java applet

 
0
  #4
Mar 28th, 2005
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 192
Reputation: stupidenator is an unknown quantity at this point 
Solved Threads: 4
stupidenator's Avatar
stupidenator stupidenator is offline Offline
Junior Poster

Re: calling the internet browser from a java applet

 
0
  #5
Mar 28th, 2005
alright ya that's what i thought.. thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC