Here you can find the source of getInt(SpinnerNumberModel model)
public static int getInt(SpinnerNumberModel model)
//package com.java2s; //License from project: Open Source License import javax.swing.SpinnerNumberModel; public class Main { public static int getInt(SpinnerNumberModel model) { return (int) model.getValue(); }//from w w w . ja va2 s .co m }