Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Errror in NumericSpinner.getValue() #304

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
NumericSpinner.getValue() always returns the value set using setValue, instead 
of the value shown on the spinner. 

Please provide any additional information below.

Using this code works: 
    public double getValue() {
//        return value;
        return spin.getModel().getSelectedIndex();
    }

Original issue reported on code.google.com by ch.hj...@gmail.com on 24 Aug 2012 at 8:38

GoogleCodeExporter commented 9 years ago
Thanks, the fix is quite different though.

Original comment by shai.almog on 25 Aug 2012 at 8:35