brushSize = new IntegerSpinner();
brushSize = new IntegerSpinner(1, 1);
    private JPanel createShapePanel() {        JPanel shapePanel = new JPanel();        JPanel opts = new JPanel();        JLabel size = new JLabel("Brush size: ");        brushSize = new IntegerSpinner();        if (myBrush != null)            brushSize.setValue(myBrush.getBounds().width);        brushSize.addChangeListener(this);        brushSize.setToolTipText("Sets the size of the brush in tiles");        brushes = new BrushBrowser();        brushes.addMouseListener(this);        JScrollPane brushScrollPane = new JScrollPane(brushes);        brushScrollPane.setPreferredSize(new Dimension(150, 150));        brushes.addPropertyChangeListener(this);        brushes.setSelectedBrush(myBrush);        shapePanel.add(brushScrollPane);        opts.setLayout(new GridBagLayout());        GridBagConstraints c = new GridBagConstraints();        c.fill = GridBagConstraints.BOTH;        c.weightx = 1; c.weighty = 1;        opts.add(size, c);        c.gridx=1;        opts.add(brushSize,c);        shapePanel.add(opts);        return shapePanel;    }