I need to put a JSpinner in a JOptionPane. Here is what I've tried:
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumberModel;
public static void main(String[] args) {
SpinnerNumberModel sModel = new SpinnerNumberModel(0, 0, 30, 1);
JSpinner spinner = new JSpinner(sModel);
JOptionPane.showInputDialog(spinner);
}
Which results in:
How do I remove the textbox?