Hello,
I have a JComboBox with a Double value, and I want to parse just the integer value. EJ:
2.1 will give 2 as a result
0.2 will give 0 as a result
etc..
How to do this?
Printable View
Hello,
I have a JComboBox with a Double value, and I want to parse just the integer value. EJ:
2.1 will give 2 as a result
0.2 will give 0 as a result
etc..
How to do this?
Have you tried simply casting the double to an int? That should do the trick.
Title says JSpinner, text says JComboBox, hmmm...
db