Class NumberSelectionPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class NumberSelectionPane extends JPanel
This class provides a way to select a floating point number from a range with a specified increment between values in the range.
See Also:
  • Constructor Details

    • NumberSelectionPane

      public NumberSelectionPane(String title, double min, double max, double increment, double initial, String inputFormat)
      Constructor.
      Parameters:
      title - The pane's title.
      min - The minimum value for the range.
      max - The maximum value for the range.
      increment - The increment over the range.
      initial - The initial value in the range.
      inputFormat - The input format to be used in the number spinner.
  • Method Details

    • getValue

      public double getValue()
      Returns:
      the value