Fumigator
05-18-2006, 05:03 PM
I'm stumped. I'm sure it's because I'm not in the right paradigm, but I'm trying to get there.
I'm writing a Swing app, 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?
I'm writing a Swing app, 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?