Results 1 to 4 of 4
Thread: Hilighting Mulitiple Rows
- 08-29-2009, 02:07 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 21
- Rep Power
- 0
Hilighting Mulitiple Rows
i have Jtable.
this table updates the contents dynamically
and in that some of the rows should be dynamically highlighted.
Example : consider as table
Date-------------------Time -------------------VideoMass
12/02/2009-------------8:30:12-------------------7.0
12/02/2009-------------8:30:13-------------------15.0
12/02/2009-------------8:30:14------------------10.0
12/02/2009-------------8:30:15--------------------9.0
12/02/2009-------------8:30:16-------------------21.0
in the sample table
12/02/2009-------------8:30:12-------------------7.0
12/02/2009-------------8:30:15--------------------9.0
only these rows should be higlighted.
this higlighting is done base on the VideoMass Column value is less than
9 and below.
the end user need not to click on the row and hold on CTRL button
from the keyboard.the highlighting should be done by itself when the
VideoMass Column value is lower than 9
is there any idea to do.
is there any sample available on the net.
thanks advance for ur helpLast edited by britto_bicsjohn; 08-29-2009 at 02:12 PM. Reason: Not aligned properly
:) javadeveloper
-
You may do well to create a new TableCellRenderer that subclasses DefaultTableCellRenderer and have it set the background of an opaque JLabel as desired. The Sun JTable tutorial will show you how to play with renderers.
- 08-31-2009, 06:48 AM #3
Member
- Join Date
- Aug 2009
- Posts
- 21
- Rep Power
- 0
Thank you
.i will use TableCellRenderer and let u know:) javadeveloper
- 08-31-2009, 10:07 AM #4
Senior Member
- Join Date
- Aug 2009
- Location
- Pittsburgh, PA
- Posts
- 284
- Rep Power
- 4
Similar Threads
-
Highlight rows of a jtable
By simmi in forum AWT / SwingReplies: 5Last Post: 08-20-2009, 01:13 PM -
Deleting rows from a database using JSP
By Manas Das in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 02-17-2009, 02:31 PM -
How to get the no. of rows in a resultset
By baskar.nitt in forum New To JavaReplies: 5Last Post: 09-19-2008, 01:30 PM -
Two diM aRRay and add rows and columns....
By filly444 in forum New To JavaReplies: 2Last Post: 08-30-2008, 05:24 PM -
Fetching rows from DB
By Java Tip in forum Java TipReplies: 0Last Post: 02-06-2008, 09:23 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks