This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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
Jtable focuslost
JTable(!!!)
JTable scrolling
JTable