944,155 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 3152
  • Java RSS
Jul 7th, 2005
0

hyperlink to page

Expand Post »
Could someone please tell me how to hyperlink to a page? Say if I had a combobox and the user selected an item, how could I hyperlink to a page?
Similar Threads
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
Jul 8th, 2005
0

Re: hyperlink to page

Hi everyone,

Add a listener for that jcombobox. When the user clicks it get the selected vlaue(assuming it is an address for the we page) cast it to a string and put it into the url class. After that put a jtextpane into a jframe and set the jtextpane to that url and set the jframe visible.

Richard West
Reputation Points: 25
Solved Threads: 10
Practically a Master Poster
freesoft_2000 is offline Offline
623 posts
since Jun 2004
Jul 8th, 2005
0

Re: hyperlink to page

Thanks but I finally got this figured out. The program I'm working on is an applet and applets offer easy methods to do this. I was making things harder than they were.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004

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: newInstance() / Loading Classes During Runtime
Next Thread in Java Forum Timeline: Applet won't load





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


Follow us on Twitter


© 2011 DaniWeb® LLC