• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Detecting when a JTable's scrolled with arrows

Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

[ May 04, 2005: Message edited by: Alex Kravets ]
"I know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic