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 / November 2007

Tip: Looking for answers? Try searching our database.

How do I create an editor pane with highlight and in-margin annotations?

Thread view: 
Daniel Pitts - 24 Nov 2007 00:35 GMT
I want to create a component that will automatically highlight certain
words.  I also hope to add annotations to the margin.  Something like
the editor in an IDE like Eclipse or IntelliJ IDEA.  As a matter of
fact, it is for something very much like an IDE.  I've read through the
Sun tutorials on text components, but it is a bit confusing if I really
want to go the route of using JEditorPane. Also, I'm not sure if I would
want to use an existing Document implementation, or if I should try to
create my own by extending either AbstractDocument or
DefaultStyledDocument, or something else entirely.

Does any one have any wisdom on this matter? Its a personal project,
mostly for learning, so it doesn't have to be professional quality
implementation. However, I'd *like* to make it as professional as
possible :-)

Thanks,
Daniel.

Signature

Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>

Daniel Pitts - 24 Nov 2007 19:07 GMT
> I want to create a component that will automatically highlight certain
> words.  I also hope to add annotations to the margin.  Something like
[quoted text clipped - 13 lines]
> Thanks,
> Daniel.

I found a useful article on Sun's site.
Customizing a Text Editor:
<http://java.sun.com/products/jfc/tsc/articles/text/editor_kit/index.html>

I think its a good basis for what I want to do.
Signature

Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>



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.