| Author |
JTextPane and creating reserved words
|
Jhedzkie Skies
Ranch Hand
Joined: Oct 28, 2009
Posts: 118
|
|
hi there. i would like to get some idea on this
i want to use a textpane and make it act like a compiler
will detect reserved words and change its color different from normal texts
my idea is a separate class of enum containing the reserved words and the text pane should have a document listener or such...
somebody help me started please. correct my concept if im wrong
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Syntax Highlighting by Ostermiller.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Jhedzkie Skies
Ranch Hand
Joined: Oct 28, 2009
Posts: 118
|
|
that should wrap it up. thanks. 
package com.Ostermiller does not exist. while gnu.getopt within the same jar is being recognized.
thanks. i managed to make it work.
|
 |
 |
|
|
subject: JTextPane and creating reserved words
|
|
|