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 / GUI / March 2006

Tip: Looking for answers? Try searching our database.

Buttons serving as hyperlinks

Thread view: 
joan - 15 Mar 2006 21:37 GMT
Hello All,
  Basically, I need to be able to have an EDITABLE document (in a
JEditorPane or JTextPane) with active hyperlinks.  All I have read
seems to say that the HyperlinkListener only works for non-editable
documents.  To get around this, I have been trying to imbed buttons
within a JTextPane that work like hyperlinks.  Although I can do this
just fine, I am having trouble 1) making the button as small as one
letter of text 2) making the button be able to be copied along with
other text and 3) being able to save the document to a file.

Can somebody either tell me how to make a editor that allows for the
insertion of active hyperlinks, or how to resize buttons within a
JTextPane as well as how to make these imbedded buttons copyable (I
would also need a way to step through the document and recognize
wherever there is a button).  Thanks in advance.
Oliver Wong - 17 Mar 2006 17:36 GMT
> Hello All,
>   Basically, I need to be able to have an EDITABLE document (in a
[quoted text clipped - 11 lines]
> would also need a way to step through the document and recognize
> wherever there is a button).  Thanks in advance.

   I don't know the answer to your question, but I have some newsgroup
related advice. Don't create a new thread every couple of hours if you're
just going to ask about the same problem over and over again. Rather,
continue the discussion in the original thread you created.

   If you start a new thread, some people will assume it's a new topic, and
will completely forget about all the (valuable) contextual information
provided in the previous one.

   - Oliver


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



©2008 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.