top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

    Get Free Article Updates

Facebook Login
Site Registration

What is Java Swing?

+2 votes
130 views

What is Swing ?

Swing is a GUI widget toolkit for Java. It is part of Oracle's Java Foundation Classes (JFC) — an API for providing a graphical user interface (GUI) for Java programs. Swing was developed to provide a more sophisticated set of GUI components than the earlier Abstract Window Toolkit (AWT).

What is Java Swing?

ava Swing is a lightweight Java graphical user interface (GUI) widget toolkit that includes a rich set of widgets. It is part of the Java Foundation Classes (JFC) and includes several packages for developing rich desktop applications in Java.

Swing includes built-in controls such as trees, image buttons, tabbed panes, sliders, toolbars, color choosers, tables, and text areas to display HTTP or rich text format (RTF). Swing components are written entirely in Java and thus are platform-independent.

Advantages for Java Swing over AWT

1)Swing components are lightweight (less resource intensive than AWT).
2)Swing provides built-in double buffering.
3)Swing provides paint debugging support for when you build your own components.
4)Swing components follow the Model-View-Controller paradigm (MVC), and thus can provide a much more flexible UI.

Disadvantages for Java Swing over AWT

1)It requires Java 2 or a separate JAR file.
2)If you're not very careful when programming, it can be slower than AWT (all components are drawn).
3)Swing components that look like native components might not act exactly like native components.

Video for Swing

posted Feb 10, 2015 by anonymous

  Promote This Article
Facebook Share Button Twitter Share Button LinkedIn Share Button


Related Articles

What is Swing GUI?

Swing is a GUI widget toolkit for Java. It is part of Oracle's Java Foundation Classes (JFC) – an API for providing a graphical user interface (GUI) for Java programs. Swing was developed to provide a more sophisticated set of GUI components than the earlier Abstract Window Toolkit (AWT).

Swing API is a set of extensible GUI Components to ease the developer's life to create JAVA based Front End/GUI Applications. It is build on top of AWT API and acts as a replacement of AWT API, since it has almost every control corresponding to AWT controls. 

Swing component follows a Model-View-Controller architecture to fulfill the following criterias.

  • A single API is to be sufficient to support multiple look and feel.
  • API is to be model driven so that the highest level API is not required to have data.
  • API is to use the Java Bean model so that Builder Tools and IDE can provide better services to the developers for use.

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 ).

Video for SWING GUI

https://www.youtube.com/watch?v=NRKxY3wMS_E​

READ MORE
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...