• Post Reply Bookmark Topic Watch Topic
  • New Topic

method to check if JTABLE has a scrollbar

 
thomas jacob
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How do we implement a method to check whether a JTable has a scrollbar. It should return a boolean true if a scrollbar is present in the JTable else a false.

Regards
Thomas
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this what you mean?

scrollPane.getVerticalScrollBar().isVisible();
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!