This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

method to check if JTABLE has a scrollbar  RSS feed

 
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!