Given the following code, how do I store the selected value from the spinner in thickness1?
JSpinner thickn=new JSpinner();
thickn = new JSpinner(new SpinnerNumberModel(1, 1, 60, 1));
thickn.setFont(new Font("Arial Sans-seriff", Font.BOLD, 12));
thickn.setBounds(120,105,100,25);
// ...
int thickness1 = (Integer) thickn.getValue();
Is there an code I can add at the 3 dot region to retrieve the value from the spinner?
In your last line, try
If you want to be more explicit, you can add the following where you have the three dots, it will do the same thing as the line above