/** * Receives notification of mouse clicks. * * @param e the mouse event. */ public void mouseClicked(final MouseEvent e) { if (e.getSource() == this.upButton) { this.value++; this.textField.setText(Integer.toString(this.value)); firePropertyChange("value", this.value - 1, this.value); } else if (e.getSource() == this.downButton) { this.value--; this.textField.setText(Integer.toString(this.value)); firePropertyChange("value", this.value + 1, this.value); } }
/** * Receives notification of mouse clicks. * * @param e the mouse event. */ public void mouseClicked(final MouseEvent e) { if (e.getSource() == this.upButton) { this.value++; this.textField.setText(Integer.toString(this.value)); firePropertyChange("value", this.value - 1, this.value); } else if (e.getSource() == this.downButton) { this.value--; this.textField.setText(Integer.toString(this.value)); firePropertyChange("value", this.value + 1, this.value); } }
/** * Receives notification of mouse clicks. * * @param e the mouse event. */ public void mouseClicked(final MouseEvent e) { if (e.getSource() == this.upButton) { this.value++; this.textField.setText(Integer.toString(this.value)); firePropertyChange("value", this.value - 1, this.value); } else if (e.getSource() == this.downButton) { this.value--; this.textField.setText(Integer.toString(this.value)); firePropertyChange("value", this.value + 1, this.value); } }