Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JWhat  RSS feed

 
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking for some JComponent to do this: I want to have a component like what I've seen in, for example, a printer driver. You use it to tell the computer how many pages you want to print. It consists of a window which shows you an integer which represents how many pages you want to print, and an up-arrow which increments the integer by 1 when you click it, and a down arrow which subtracts 1 from the integer when you click it. The up and down arrows are arranged vertically, and next to the integer window. Microsoft Word has that in the page size setter to set the text margins. Do you know what I mean? I don't know what it's called, so I'm describing it.
What class in Java can do this?
 
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSpinner
 
Kevin Tysen
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
This is my favorite show. And this is my favorite tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!