0% found this document useful (0 votes)
6 views

Java Swing Tutorial

Uploaded by

Poonam Rani
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Java Swing Tutorial

Uploaded by

Poonam Rani
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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.

The javax.swing package provides classes for java swing API such as JButton, JTextField,
JTextArea, JRadioButton, JCheckbox, JMenu, JColorChooser etc.

No. Java AWT Java Swing

AWT components Java swing components


1)
are platform-dependent. are platform-independent.

AWT components Swing components


2)
are heavyweight. are lightweight.

AWT doesn't support Swing supports


3)
pluggable look and feel. pluggable look and feel.

Swing provides more


powerful
AWT provides less components such as
4)
components than Swing. tables, lists, scrollpanes,
colorchooser, tabbedpane
etc.

AWT doesn't follows


MVC(Model View
Controller) where model
represents data, view Swing follows
5)
represents presentation MVC.
and controller acts as an
interface between model
and view.

You might also like