What are the methods in component class?

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 more

What are the Swing class?

Swing in java is part of Java foundation class which is lightweight and platform independent . It is used for creating window based applications. It includes components like button, scroll bar, text field etc. Putting together all these components makes a graphical user interface.

Read more