An enabled component can respond to user input and generate events. Set or get the component's locale. If the component does not have a locale, the locale of its parent is returned. See Internationalization for information about locales. Set or get whether the component is visible.
Components are initially visible, with the exception of top-level components.
Add or remove a component listener to or from the component. Component listeners are notified when the listened-to component is hidden, shown, moved, or resized. Add or remove a key listener to or from the component. Key listeners are notified when the user types at the keyboard and the listened-to component has the keyboard focus. Mouse listeners are notified when the user uses the mouse to interact with the listened-to component.