Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2815 > unrolled thread
| Started by | "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:41 +0000 |
| Last post | 2011-04-27 15:41 +0000 |
| Articles | 2 — 1 participant |
Back to article view | Back to comp.lang.java.gui
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
| From | "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:41 +0000 |
| Subject | How do I create an editor |
| Message-ID | <5tKdneWj0bVo7NranZ2dnUVZ_uyinZ2d@wavecable.com> |
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
[toc] | [next] | [standalone]
| From | "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:41 +0000 |
| Subject | Re: How do I create an ed |
| Message-ID | <a5OdncFUtaoQ69XanZ2dnUVZ_oesnZ2d@wavecable.com> |
| In reply to | #2815 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web