This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
I agree. Here's the link:
subject: implementing columnMoved method
Similar Threads
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
Multiplication Table
Resizing JTable