aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Adding A Total Row at the End of a 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 "Adding A Total Row at the End of a JTable" Watch "Adding A Total Row at the End of a JTable" New topic
Author

Adding A Total Row at the End of a JTable

Lilian Chase
Greenhorn

Joined: Jun 14, 2010
Posts: 24
Hi All,

I wish to add a total row at the end of my data in a JTable. However I want the total row to always remain visible throughout scrolling and when data is sorted.

I came across suggestions about using two tables but wouldn't the second table aka the total row be below the JScrollPane?

Another suggestion was interesting > link

Jeff Albertson suggested adding the row to the south region of the JScrollPane. How would that be implemented?

Any other suggestions on methods to implement the total row at the foot of the JScrollPane?

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
this might be one way, but you'll probably need to tweak the column widths

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding A Total Row at the End of a JTable
 
Similar Threads
Last row in JTable not scrollable
JTable
JTable
JTable
jtable