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 / First Aid / March 2006

Tip: Looking for answers? Try searching our database.

Making a button smaller and saving

Thread view: 
joan - 16 Mar 2006 03:43 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.
Rhino - 16 Mar 2006 16:47 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.
Rhino - 16 Mar 2006 18:28 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.

Sorry for the aborted reply. I started to reply but realized that my remarks
wouldn't have been very helpful so I tried to cancel the post and hit Send
by mistake.

Basically, all I was going to say was that I had never tried to work with
hyperlinks in an editable document - I have played with editable documents
and hyperlinks a bit but not both together - and wasn't sure of the best way
to handle them but that there must surely be a better approach than the one
you're describing. But I can't really suggest a better approach from my own
experience and it's quite possible there isn't one.

Perhaps the best thing you could do would be a Google search of the archives
of the comp.lang.java.* newsgroups; perhaps a search on "hyperlink
editable", or something like that, would produce some useful suggestions.

Otherwise, maybe someone here or on comp.lang.java.programmer or
comp.lang.java.gui could suggest something.

--
Rhino


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.