View Single Post
  #1 (permalink)  
Old 07-17-2007, 06:52 PM
romina romina is offline
Member
 
Join Date: Jul 2007
Posts: 26
romina is on a distinguished road
How can I cast Object as an int
I'm writing a Swing application, and I have a JSpinner object that I modeled on the SpinnerNumberModel.

There is a getPreviousValue method that returns the value of the previous number in the sequence, only in Object form!

I need to work with this number as an int.

How can I cast that Object as an int?
Thanks
Reply With Quote
Sponsored Links