Class java. awt. Component Method Summarybooleanaction(Event evt, Object what) Deprecated. As of JDK version 1.1, should register this component as ActionListener on component which fires action events.floatgetAlignmentX() Returns the alignment along the x axis.floatgetAlignmentY() Returns the alignment along the y axis.Class java.awt.Component – Washington courses.cs.washington.edu › courses › cse341 › java › docs › api › Compo…
Read moreWhat are the components and container class in Java?
What is the difference between Component class and Container class in Java? The class Component is the abstract base class for the non-menu user-interface controls of AWT. A component represents an object with graphical representation. The class Container is the superclass for the containers of AWT.
Read more