Class FWSpinner

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FWSpinner extends JSpinner
Wrapper class for JSpinner that gives all spinners the same minimum and preferred sizes. The text field of the editor is not editable; values are changed with the arrow buttons.
Author:
Christoph Kunze
See Also:
  • Constructor Details

    • FWSpinner

      public FWSpinner(double tMinValue, double tMaxValue, int tStepSize)
      Creates a number spinner starting at the minimum.
      Parameters:
      tMinValue - smallest value
      tMaxValue - largest value
      tStepSize - step size
    • FWSpinner

      public FWSpinner(double tMinValue, double tMaxValue)
      Creates a number spinner starting at the minimum with step size 1.
      Parameters:
      tMinValue - smallest value
      tMaxValue - largest value
    • FWSpinner

      public FWSpinner(double tMinValue, double tMaxValue, double tDefaultValue, int tStepSize)
      Creates a number spinner.
      Parameters:
      tMinValue - smallest value
      tMaxValue - largest value
      tDefaultValue - initial value
      tStepSize - step size
    • FWSpinner

      public FWSpinner(SpinnerModel aSpinnerModel)
      Creates a spinner for the model.
      Parameters:
      aSpinnerModel - the spinner model
  • Method Details