Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable ListSelectionListener

 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have three JTables stacked one on the top of other. Only lower JTable has horizontal scroll bar and listener is attached to it. When this scroll bar is scrolled, the other two top tables scroll as well:


However, when I use arrow keys to move within the table the listener no longer works because I am not using scroll bar. Now I got another listener from sun's website that detects when table is being scrolled with arrow and I get the current column selected, but how do I apply this information to other two tables?



thanks,
Alex

[ April 04, 2005: Message edited by: Alex Kravets ]

[ April 04, 2005: Message edited by: Alex Kravets ]
[ April 04, 2005: Message edited by: Alex Kravets ]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
don't know if this will work in JTables, but worth a try
(the 'pad' part is just to trigger the horizontal scrollbar)

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic