This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Jtext highlight visited line s Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Jtext highlight visited line s" Watch "Jtext highlight visited line s" New topic
Author

Jtext highlight visited line s

Anu Bhagat
Ranch Hand

Joined: Jun 20, 2008
Posts: 64
I can highlight visited lines in one color. I want to highlight previously visited lines with gray and the current line with yellow.
My code is as follows. With this all visted lines are highlighted with yellow. When step button is clicked the actionPerformed method is invoked.

Please help Thanks in advance.

Anu




SCJP5.0, SCJA
Anu Bhagat
Ranch Hand

Joined: Jun 20, 2008
Posts: 64
Please give any pointer hint that will help me to hilight the current line with different color than all the previously visited lines.

Thanks in advance Here is my java class

Anu




 
wood burning stoves
 
subject: Jtext highlight visited line s
 
Similar Threads
Highlighting text in a JTextPane without scrolling to the end.
DataTable inside a DataTable
Highlight the search field in a text area -----HELP required URGENT
Convert a string into an array of String
how to reference already defined property as the value for another key in the properties file.