aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes bold font in last row of JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "bold font in last row of JTable" Watch "bold font in last row of JTable" New topic
Author

bold font in last row of JTable

Wallace O'Connell
Greenhorn

Joined: Feb 07, 2003
Posts: 2
I have created a JTable with some information. I want to have the last row of the table as a summary row so I want it to stand out. How would I go about putting the text in the last row of the table in bold font?
Thanks for help!
Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
Welcome to the Ranch Wallace!
Try setting the font to bold only when the renderer is drawing the last row, as this example:


SCJP2. Please Indent your code using UBB Code
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: bold font in last row of JTable
 
Similar Threads
Jtable focuslost
JTable
JTable scrolling
JTable
JTable(!!!)