Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2815

How do I create an editor

From "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this>
Subject How do I create an editor
Message-ID <5tKdneWj0bVo7NranZ2dnUVZ_uyinZ2d@wavecable.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:41 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui,compla
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.

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

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar | Unroll thread


Thread

How do I create an editor "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
  Re: How do I create an ed "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000

csiph-web