JLabel offsxlabel = new JLabel(
Messages.getString("OffsetSpriteAction.LABEL_X_OFFSET")); //$NON-NLS-1$
JLabel offsylabel = new JLabel(
Messages.getString("OffsetSpriteAction.LABEL_Y_OFFSET")); //$NON-NLS-1$
SpinnerModel offsxmodel = new SpinnerNumberModel(baseOffsetX,
MIN_OFFSET_VALUE, MAX_OFFSET_VALUE, 1);
SpinnerModel offsymodel = new SpinnerNumberModel(baseOffsetY,
MIN_OFFSET_VALUE, MAX_OFFSET_VALUE, 1);
JSpinner offsxspin = new JSpinner(offsxmodel);
JSpinner offsyspin = new JSpinner(offsymodel);
// ---------------------------------------------------
ChangeListener listener = new OffsetSpriteListener(offsxmodel,
offsymodel, view, sprite);
offsxmodel.addChangeListener(listener);
offsymodel.addChangeListener(listener);
// ===================================================
JPanel panel = new JPanel();
GroupLayout layout = new GroupLayout(panel);