• Post Reply Bookmark Topic Watch Topic
  • New Topic

Scrolling in JTable

 
Jennifer Sohl
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I have created a JTable which sits in a JScrollPane. Whenever I try to scroll through the data using the wheel on my mouse, nothing happens. Is there something I need to code to make it recognize that I am using the wheel on the mouse?
Thanks in advance.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java doesn't support wheel mice... yet... I have heard that maybe in the next release ( Java 1.4 ) wheel mice support will finally arrive... but until then, here's a link to a package that uses JNI to support scrolling with a wheel mouse... but it only works under Windows...

HTH,
-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!