Class IntegerDialog

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
net.sourceforge.jiu.gui.awt.dialogs.IntegerDialog
All Implemented Interfaces:
ActionListener, AdjustmentListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class IntegerDialog extends Dialog implements ActionListener, AdjustmentListener, KeyListener
An AWT dialog to select an int value from a given interval.
Author:
Marco Schmidt
See Also:
  • Field Details

    • cancel

      private Button cancel
    • maxValue

      private int maxValue
    • minValue

      private int minValue
    • ok

      private Button ok
    • result

      private Integer result
    • scrollbar

      private Scrollbar scrollbar
    • valueTextField

      private TextComponent valueTextField
  • Constructor Details

    • 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
  • Method Details