aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Detecting when a JTable's scrolled with arrows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Detecting when a JTable Watch "Detecting when a JTable New topic
Author

Detecting when a JTable's scrolled with arrows

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
I have three JTables that are place in a row. Vertical scollbars of two rows are hidden and the right-most one is visible. I have listener attached to a right-most scrollbar so when a user moves it, the table scrolls and the two tables to the left of it scroll as well. Here is the listener:

With this set when a user scrolls with scrollbar or with arrows inside the table all tables scroll as well.
What I want to add to this is when a user scrolls table with arrows the rows of adjacent tables are highlighted. how can I do this?

thanks,
Alex
[ May 04, 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Detecting when a JTable's scrolled with arrows