Class IntegerDialog

    • Field Detail

      • cancel

        private Button cancel
      • maxValue

        private int maxValue
      • minValue

        private int minValue
    • Constructor Detail

      • IntegerDialog

        public IntegerDialog​(Frame owner,
                             String title,
                             String message,
                             int minValue,
                             int initialValue,
                             int maxValue,
                             String okText,
                             String cancelText)
        Creates an IntegerDialog, a modal dialog that lets the user select one int value from a given interval.
        Parameters:
        owner - the Frame this dialog will belong to
        title - the text that will be displayed in the title bar of the dialog
        message - the message text that will be displayed in the upper part of the dialog
        minValue - the minimum allowed int value to be selected by the user
        initialValue - the int value that is selected when the dialog first pops up
        maxValue - the maximum allowed int value to be selected by the user
        okText - the value for OK (just "OK" in English programs, may be different for other natural languages
        cancelText - the value for Cancel (just "Cancel" in English programs, may be different for other natural languages