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


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

Re: How do I create an ed

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 Re: How do I create an ed
Message-ID <a5OdncFUtaoQ69XanZ2dnUVZ_oesnZ2d@wavecable.com> (permalink)
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

Show key headers only | View raw


  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:
<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.
-- 
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 | NextPrevious 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