Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #987
| From | "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Text Editing (JTextCompon |
| Message-ID | <1171912732.670821.218640@j27g2000cwj.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:30 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui I am working to write an editor similar to a mathematical formula editor. The user uses buttons to add the components/logic to the formula. That is easy enough to do and I have already started working on that portion of the code. The issue I am having (and I'm not even sure where to begin) is that I want the user to be able to select a token (AKA, part of the formula) by clicking the text so they can delete it in case they make a mistake. The text should change color if highlighted, but I don't want "highlighting" around the text (AKA, the box will not be editable, AKA the person cannot type directly into the box). Is this possible by extending JTextComponent or JTextArea (which extends JTextComponent, I know) and use their current functionality and add on the functionality I'm looking for? Any suggestions on how to go about doing this? And, if that question makes absolutely no sense, please let me know so I can rephrase it. --- * 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 | Next | Find similar
Text Editing (JTextCompon "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
csiph-web