The AWT provides nine basic non-container component classes from which a user interface may be constructed. (Of course, new component classes may be derived from any of these or from class Component itself.) These nine classes are class Button, Canvas, Checkbox, Choice, Label, List, Scrollbar, TextArea, and TextField.
Read moreWhich is the correct method of component class?
Class methods S.N.Method & Description93Toolkit getToolkit() Gets the toolkit of this component.94Object getTreeLock() Gets this component’s locking object (the object that owns the thread sychronization monitor) for AWT component-tree and layout operations.95int getWidth() Returns the current width of this component.AWT Component Class – Tutorialspoint www.tutorialspoint.com › awt › awt_component
Read more