Hyperlinks in Java

How do you make something when clicked go to another website. What code do you place in the action listener to make it do this?Thanks
[147 byte] By [Chris1234554a] at [2007-11-27 9:57:53]
# 1

> How do you make something when clicked go to another

> website. What code do you place in the action

> listener to make it do this?

Since an ActionListener doesn't have anything to do with networking, what thing do you want to make "go to another website"? Get a reference to that thing in your ActionListener and call the appropriate method.

yawmarka at 2007-7-13 0:28:18 > top of Java-index,Java Essentials,Java Programming...
# 2
Take a look at these guides. http://www.javalobby.org/java/forums/t19716.html If you are using Java 6 then check this link http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/else check
_helloWorld_a at 2007-7-13 0:28:18 > top of Java-index,Java Essentials,Java Programming...
# 3
Check out thismight helpful to you http://www.devdaily.com/blog/Content/2/11/412/
student@sunDNa at 2007-7-13 0:28:18 > top of Java-index,Java Essentials,Java Programming...
# 4
I feel static content and business logic are kept separate thenwhy are you looking for any java class probably some HTML classes package that may solve out your problem.Plz go through website development using J2EE.
Adi1000a at 2007-7-13 0:28:18 > top of Java-index,Java Essentials,Java Programming...
# 5
I thought that the action listener would trigger the opening of a page. Also do those examples include applets?
Chris1234554a at 2007-7-13 0:28:18 > top of Java-index,Java Essentials,Java Programming...
# 6
>Also do those examples include> applets?And?
_helloWorld_a at 2007-7-13 0:28:18 > top of Java-index,Java Essentials,Java Programming...
# 7
> I thought that the action listener would trigger the> opening of a page. Reply #1.~
yawmarka at 2007-7-13 0:28:18 > top of Java-index,Java Essentials,Java Programming...