BorderFactory.createEmptyBorder(0, 5, 5, 5)));
presets.setLayout(new GridLayout(1, 1));
presets.add(brushScrollPane);
// Brush size
brushSize = new IntegerSpinner(1, 1);
if (myBrush != null) {
Rectangle r = myBrush.getBounds();
brushSize.setValue(r.width);
}
brushSize.addChangeListener(this);
brushSize.setToolTipText(BRUSH_SIZE_TOOLTIP);
// Number of affected layers
affectLayers = new IntegerSpinner(myBrush.getAffectedLayers(), 1);
affectLayers.addChangeListener(this);
// Randomize tile placement
cbRandomBrush = new JCheckBox(RANDOM_CHECKBOX);
cbRandomBrush.setToolTipText(RANDOM_BRUSH_TOOLTIP);