Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ruben Jackson   on Jan 31 In Java Category.

  
Question Answered By: Alvin Nguyen   on Jan 31

Try implementing KeyListener, when a key is pressed put the TextField
through a StringTokenizer and then have a while loop that goes
through the TextField changing the color of the words. And to check
for a period just look at the last character in each token. I don't
know how to do that actual coloring part though.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Help : identify words typed in JTextPane Or get search suggestion and latest updates.


Tagged: