❮ Previous Next ❯

Java Swing Tutorial Introduction

Java Swing tutorial is a part of Java Foundation Classes (JFC) that is used to create window-based GUI applications. The Java Foundation Classes (JFC) are a set of GUI components which simplify the development of desktop applications. It is built on the foundation of AWT (Abstract Windowing Toolkit). Swing also uses the same event handling mechanism as the AWT. The javax.swing package provides classes for java swing API such as JButton, JTextField, JTextArea, JRadioButton, JCheckbox, JMenu etc.

Two key Swing Features:

  1. Swing components are lightweight : Swing components are written entirely in java and do not map directly to platform specific codes. Lightweight components are more flexible and more efficient. So each component will work in a consistent manner.
  2. Swing supports a pluggable look and feel : Each swing component is rendered by java code rather than by native codes. The look and feel of a component is under the control of swing. That means it is possible to separate the look and feel of a component from the logic of the component.

AWT vs Swing

Java AWT components are platform dependent. Java Swing components are platform independent.
AWT components are heavyweight. Swing components are lightweight.
AWT does not support pluggable look and feel. Swing supports pluggable look and feel.
AWT does not follow MVC. Swing follow MVC (Model View Controller) where model represents data, view represents presentation and controller acts as an interface between model and view.
❮ Previous Next ❯


Popular Links

Contact Us

address Plot No-741,2ND Floor
Opp. Bhagabati Temple,Jayadev Vihar
      Email: info@silantechnology.com
      Phone: 0674-2361252
39877, sundale dr, apt#101, Fremont, California 94538, USA
       Phone: +1(262)388-7619

facebook twitter google linked in

© 2018 Silan Technology. All Rights Reserved