File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes how to create hyperlink from java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to create hyperlink from java" Watch "how to create hyperlink from java" New topic
Author

how to create hyperlink from java

Ramaswamy Narayanan
Greenhorn

Joined: Jan 19, 2005
Posts: 24
dear friends

i need to create an hyperlink in my Swing page.
on clicking the hyperlink i have to link to file specified.

is it possible from java to create an hyperlink.
if possible, please help me.

thank you
bye
narayanan
Rema Remulta
Ranch Hand

Joined: Apr 03, 2002
Posts: 51
Yes, you can do this in java thru the implementation of HyperlinkListener. You may take a look this simple code as an example and play around according to what you want:


Hope this helps.

Good luck,
Rema
Ramaswamy Narayanan
Greenhorn

Joined: Jan 19, 2005
Posts: 24
hai

ok this will help me to check whether the link is activated or not.
if activated, it will open the page.
but what my question is how to add a link in the Swing page.
pls help
bye
narayanan
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Ramaswamy,
This forum is dedicated for discussing WebServices related topics. I am moving this thread to "Swing/AWT" forum.


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Asif Lodhi
Greenhorn

Joined: Feb 04, 2005
Posts: 2
Originally posted by Ramaswamy Narayanan:
hai

ok this will help me to check whether the link is activated or not.
if activated, it will open the page.
but what my question is how to add a link in the Swing page.
pls help
bye
narayanan


http://java.sun.com/docs/books/tutorial/uiswing/components/html.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to create hyperlink from java