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