Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #28994
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Newsgroups | comp.lang.javascript, comp.lang.java.programmer |
| Subject | Re: How to write a text editor in Java |
| Date | 2015-12-09 18:29 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <n49rub$1p6$1@dont-email.me> (permalink) |
| References | <editor-20151209153607@ram.dialup.fu-berlin.de> |
Cross-posted to 2 groups.
On Wed, 09 Dec 2015 14:52:20 +0000, Stefan Ram wrote: > This Java application contains a text editor. > I am always curious to learn how to program a text editor. > The easy answer is to use one of the subclasses of javax.swing.text.EditorKit - all you need to add is the input and output Streams and, probably, a JFileChooser pane to control the streams. Or you can use JEditPane, which uses EditorKit for its text manipulation. I've used JEditorPane to write a simple text-mode terminal application in Java which did more or less what an X-term Console utility or the equivalent Windows terminal emulator does. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread
Re: How to write a text editor in Java Martin Gregorie <martin@address-in-sig.invalid> - 2015-12-09 18:29 +0000
csiph-web