Co-Authored By:

Asked by: Andrada Laphitzondo
technology and computing programming languagesWhat is Swing API in Java?
Similarly, you may ask, what is swing in advanced Java?
Swing is a set of program component s for Java programmers that provide the ability to create graphical user interface ( GUI ) components, such as buttons and scroll bars, that are independent of the windowing system for specific operating system . Swing components are used with the Java Foundation Classes ( JFC ).
Correspondingly, what is Swing in Java with example?
Java Swing tutorial is a part of Java Foundation Classes (JFC) that is used to create window-based applications. It is built on the top of AWT (Abstract Windowing Toolkit) API and entirely written in java. Unlike AWT, Java Swing provides platform-independent and lightweight components.
AWT stands for Abstract Window Toolkit. Swing is a part of Java Foundation Class (JFC). AWT components are heavy weight. Swing components are light weight. AWT components are platform dependent so there look and feel changes according to OS.