Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #28994 > unrolled thread
| Started by | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| First post | 2015-12-09 18:29 +0000 |
| Last post | 2015-12-09 18:29 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.javascript
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How to write a text editor in Java Martin Gregorie <martin@address-in-sig.invalid> - 2015-12-09 18:29 +0000
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Date | 2015-12-09 18:29 +0000 |
| Subject | Re: How to write a text editor in Java |
| Message-ID | <n49rub$1p6$1@dont-email.me> |
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 top | Article view | comp.lang.javascript
csiph-web