Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JWhat

 
Kevin Tysen
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?
 
Ilja Preuss
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic