Java Swing

Home About Us



A Brief Introduction to Java Swing

If you are planning on writing code with Java programming language it makes sense to learn a little bit about java swing programming. It pays to look at a few examples and you should also look at the source code as then you will get a good idea about what is involved.

java database

Java Swing is part of the JFC and it consists of the look and feel as well as accessibility of Java 2D. Java Swing is an extension library belonging to the AWT and it includes new as well as improved components that help in enhancing and also improving the look as well as functionality of GUIs.

 
java string

java database can be used in the building of standalone Swing GUI applications and it can also be used with servlets and applets. Java Swing makes use of model/view design architecture and is much more portable as well as flexible as compared with AWT.

Java Swing is built on top of the AWT and is normally written entirely in the Java programming language. It makes use of the AWT light-weight component support. Its architecture differs from that of AWT and so it becomes much easier to customize the appearance as well as behaviour of the swing.

 
java swing

It is however possible to combine components of both AWT and Swing. When you combine them there is room for adding Swing support to the programs that are already written in AWT. This means that java string components such as Jslider, Jcheckbox and Jbutton can be used side by side with standard AWT labels and textfields as well as scrollbars.

It is also possible to sub-class an existing Swing UI or model or you can make changes to listener classes without needing to do too much reinvention. The best part is that with Java Swing it is also possible to replace objects on the fly.