File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
jQuery in Action, 3rd edition