Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

swing html connection

Thread view: 
vidhi - 23 Jan 2006 09:47 GMT
i use html text in a JLable as a text for formatting purpose; it works
well but when i use to put hyperlink in that html code it doesn't
became clickable and also don't work.

JLabel lblHelpLink=new JLabel("<html><script>function
hopen(a){window.open('html/village_help.htm','Popup_Window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=532,height=403')}</script><body>For
help <a href='javascript:hopen('village_help')'>click
here</a></body></html>");

please guide me direction to how to open html page through java code.
Thomas Weidenfeller - 23 Jan 2006 10:06 GMT
> i use html text in a JLable as a text for formatting purpose; it works
> well but when i use to put hyperlink in that html code it doesn't
> became clickable and also don't work.

Don't multipost.

/Thomas
Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/

Roedy Green - 23 Jan 2006 20:52 GMT
On Mon, 23 Jan 2006 11:06:07 +0100, Thomas Weidenfeller
<nobody@ericsson.invalid> wrote, quoted or indirectly quoted someone
who said :

>Don't multipost

see http://mindprod.com/jgloss/multiposting.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Raymond DeCampo - 23 Jan 2006 15:32 GMT
> i use html text in a JLable as a text for formatting purpose; it works
> well but when i use to put hyperlink in that html code it doesn't
[quoted text clipped - 6 lines]
>
> please guide me direction to how to open html page through java code.

You have to implement hyperlink listening yourself.  Look for a class
called HyperlinkListener.

HTH,
Ray

Signature

This signature intentionally left blank.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.