944,162 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2848
  • Java RSS
Mar 28th, 2005
0

calling the internet browser from a java applet

Expand Post »
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?
Similar Threads
Reputation Points: 18
Solved Threads: 4
Junior Poster
stupidenator is offline Offline
192 posts
since Mar 2005
Mar 28th, 2005
0

Re: calling the internet browser from a java applet

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
Reputation Points: 25
Solved Threads: 10
Practically a Master Poster
freesoft_2000 is offline Offline
623 posts
since Jun 2004
Mar 28th, 2005
0

Re: calling the internet browser from a java applet

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.
Reputation Points: 18
Solved Threads: 4
Junior Poster
stupidenator is offline Offline
192 posts
since Mar 2005
Mar 28th, 2005
0

Re: calling the internet browser from a java applet

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.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Mar 28th, 2005
0

Re: calling the internet browser from a java applet

alright ya that's what i thought.. thanks
Reputation Points: 18
Solved Threads: 4
Junior Poster
stupidenator is offline Offline
192 posts
since Mar 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: array from StringTokenizer
Next Thread in Java Forum Timeline: How would you do this?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC