posted 18 years ago
Hi,
I want to use a default styled document with a JTextField in order to implement a spellchecker and make incorrect words turn red.
I have this working on a JTextPane, but for some reason I can not get the red style to work with a JTextField.
It is like the fancy styles are getting ignored by the JTextField even though I have explicitly set it to use a DefaultStyledDocument as the data model.
Does anyone have any suggestions?
Cheers, Jared.
SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S