Swing in java
Swing is the Java platform's UI -- it
acts as the software to handle all the interaction between a user and the
computer. It essentially serves as the middleman between the user and the guts
of the computer. How exactly does Swing do this? It provides mechanisms to
handle the UI aspects described in the previous panel:
•
Keyboard: Swing provides a way to capture user input.
•
Colors: Swing provides a way to change the colors you see on the screen.
• The address bar you type into: Swing
provides text components that handle all the mundane tasks.
• The volume of the music: Well ...
Swing's not perfect. In any case, Swing gives you all the tools you need to
create your own UI.
Swing library is an official Java GUI toolkit released by Sun
Microsystems. It is used to create Graphical user interfaces with Java.
AWT stands for the "Abstract Window
Toolkit" and it is used for creating the graphical user interface.The main
problem is that it uses the components designed by the windows.While the swings
creates its own components.
Therefore the layout of the application
will remains the same irrespective of the operating system on which the
application is run.
All the components of the swings are
present in the package javax.swing.
The main
characteristics of the Swing toolkit
- platform independent
- customizable
- extensible
- configurable
- lightweight
Comments
Post a Comment