Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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




 
 
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.