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


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

How do I create an editor

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this>
Subject How do I create an editor
Message-ID <5tKdneWj0bVo7NranZ2dnUVZ_uyinZ2d@wavecable.com> (permalink)
X-Comment-To comp.lang.java.gui,compla
Newsgroups comp.lang.java.gui
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 26
Date Wed, 27 Apr 2011 15:41:18 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918878 96.60.20.240 (Wed, 27 Apr 2011 10:41:18 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:41:18 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:2815

Show key headers only | 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