Component

The class jcontrol.ui.vole.Component is used as a basic class for all user interface components and comprises the following standard methods, that are implemented by every GUI component and every Container.

MethodDescription
getParent()Returns the Container that comprises this Component.
boolean isVisible()Checks if this Component is visible.
remove()Removes this Component from its Container.
requestFocus()Requests the focus to be transferred to this Component. In some cases, this may not be possible.
removeFocus()Removes the focus from this Component.
setBounds(int x, int y, int width, int height)Changes position and dimensions of the current Component, which will thereupon be redrawn.
setFont(Font f)Sets the passed font as the font to be used by this Component, which will thereupon be redrawn.
setVisible(boolean b)Toggles the visibility of this Component.
validate()Recalculates the dimensions (the so called PreferredSize) of the actual Component, which will thereupon be redrawn.
Tabelle 2: Standard methods of the class jcontrol.ui.vole.Component

A complete list of all methods of the class Component including a detailed description can be found in the JControl API documentation.