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

slider API in swings  RSS feed

 
thushar kumar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I require the use of a slider in my GUI to graphically increase and decrease a number. Does swings have an API for this?

thanks in advance,
thushar
 
Darrin Cartwright
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure!
You are looking for the JSlider class.
Just tie the events from the JSlider to your number display.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!