Module java.desktop

Class Control

    • Constructor Detail

      • Control

        protected Control​(Control.Type type)
        Constructs a Control with the specified type.
        Parameters:
        type - the kind of control desired
    • Method Detail

      • getType

        public Control.Type getType​()
        Obtains the control's type.
        Returns:
        the control's type
      • toString

        public String toString​()
        Obtains a String describing the control type and its current state.
        Overrides:
        toString in class Object
        Returns:
        a String representation of the Control