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" Subject: Re: How do I create an ed Message-ID: X-Comment-To: comp.lang.java.gui,comp.l Newsgroups: comp.lang.java.gui In-Reply-To: <5tKdneWj0bVo7NranZ2dnUVZ_uyinZ2d@wavecable.com> References: <5tKdneWj0bVo7NranZ2dnUVZ_uyinZ2d@wavecable.com> Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 32 Date: Wed, 27 Apr 2011 15:41:20 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918880 96.60.20.240 (Wed, 27 Apr 2011 10:41:20 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:41:20 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:2822 To: comp.lang.java.gui,comp.l Daniel Pitts wrote: > 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. > I found a useful article on Sun's site. Customizing a Text Editor: I think its a good basis for what I want to do. -- Daniel Pitts' Tech Blog: --- * 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