wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes implementing columnMoved method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "implementing columnMoved method" Watch "implementing columnMoved method" New topic

implementing columnMoved method

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
I have two tables one on top of another (call them main and totals respectively). When a column is being moved in main table, I want column in totals table to move with main table's column. I see that TableColumnModelEvent has getFromIndex() and getToIndex(), but if I do know where main table's column was moved, how can I move totals table's column?

[ January 25, 2005: Message edited by: Alex Kravets ]

All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
Don't get me started about those stupid light bulbs.
subject: implementing columnMoved method
Similar Threads
Multiplication Table
Loosing focus on entire column
how to create jtable with rowheader as well as with columnheader
Id field is a PK but is also a FK pointing towards a PK of a main table
Resizing JTable