• Post Reply Bookmark Topic Watch Topic
  • New Topic

Integer box  RSS feed

 
Matthew Jones
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know if there exists in the AWT anything that resembles a box with two arrow buttons attached (one up, one down) that increments or decrements the value in the box. Sort of like the boxes you see when you change the print margins in a Microsoft app.
Thanks
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you want a JSpinner, or a SpinnerModel or SpinnerListModel.
Check this out: http://java.sun.com/products/jfc/tsc/articles/merlin/specs/spinner/spinner.html
[This message has been edited by Cindy Glass (edited January 18, 2001).]
 
Matthew Jones
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! That is exactly what I was looking for. I was hoping there was an AWT component, but I guess I'll just have to break down and learn swing
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!