Swing is technologically more advanced than AWT. It has much more features and functions. It has a richer set of components which can modify and change according to the library. It uses MVC which is Model View Controller Paradigm thus offering a more flexible GUI. Swing also has a built in double Buffering and at the same time is lightweight. It is also one hundred percent java based. And therefore provides icons, and also decorative and attractive borders for components and tool tips.
The only flaw is that not all swing might act like native component. Swing is required to create a Java program. This tool kit is highly complex with its customizable text package and its integrated accessibility support. Since swing is built on a 2D package it can easily enhance all animations and images. And its undo framework thus supporting innumerable editing. Thus swing definitely beats AWT in all ways.
Swing is not a complete replacement for the AWT-it is built on top of the AWT architecture. Swing simply gives you more capable user interface components.
Even though AWT is powerful, there are many compelling reasons as to why Swings is a more successful and preferred choice for UI programmers. They are:
1. Swing has a rich and convenient set of user interface elements.
2. Swing has few dependencies on the underlying platform. This means that it is less prone to platform-specific bugs.
3. Swing gives a consistent user experience across platforms.
Even though AWT is powerful, there are many compelling reasons as to why Swings is a more successful and preferred choice for UI programmers. They are:
1. Swing has a rich and convenient set of user interface elements.
2. Swing has few dependencies on the underlying platform. This means that it is less prone to platform-specific bugs.
3. Swing gives a consistent user experience across platforms.
javax.swing is a GUI package in Java. The Frame class is an element of the java.awt GUI package.
1.applet has a life cycle while awt doesn't
2.awt is ued for web based applications whereas awt for window based.
.....garima
AWT is much more basic
Swing is a package in Java which contains tools for building GUI application. Swing is a part of Java's foundation classes.
Swing is considered light weight because it is fully implemented in Java, without calling the native operating system for drawing the graphical user interface components
Java does not have the concept of Reference Variables. We cannot access the memory location where the data is stored in Java.
You really don't want to do that. Swing is for desktop applications. If you want to create a website, use Java Server Faces or Applets, not Swing.
It is a part of swing package.
Java Swings is a technology that is used to create User Interface Components using Java. Swing Events are a part of this technology that is used to handle user actions like click of a button or closing the component etc
Swing Components are elements like a Frame, Button, Panel etc that can be used as part of Java Swings to create User Interfaces.
Swing is a package in Java which contains tools for building GUI application. Swing is a part of Java's foundation classes.
Java Swing might be needed by someone because Swing provides a native look and feel that matches the look and feel of several platforms, with more powerful and flexible components than AWT.
swing technology
Swing is considered light weight because it is fully implemented in Java, without calling the native operating system for drawing the graphical user interface components
Java Swings is a technology using which we can create powerful and light weight User Interface Components. 1. Swing has a rich and convenient set of user interface elements. 2. Swing has few dependencies on the underlying platform. This means that it is less prone to platform-specific bugs. 3. Swing gives a consistent user experience across platforms.
Java does not have the concept of Reference Variables. We cannot access the memory location where the data is stored in Java.
A top-level window (i.e., a window that is not contained inside another window) is called a frame in Java. The AWT library has a class, called Frame, for this top level. The Swing version of this class is called JFrame and extends the Frame class. The JFrame is one of the few Swing components that is not painted on a canvas. Thus, the decorations (buttons, title bar, icons, and so on) are drawn by the user's windowing system, not by Swing
You really don't want to do that. Swing is for desktop applications. If you want to create a website, use Java Server Faces or Applets, not Swing.
It is a part of swing package.
Swing is the next-generation GUI toolkit that Sun Microsystems has developed for the Java language. It is essentially a vast component framework built over parts of the older AWT component libraries used in Java 1.0 and 1.1. Swing is written in 100% Java; there are no native calls. Hence, it can run on any platform with a compatible Java virtual machine. 1. It provides Java programmers many new powerful components-- most of which we've been begging for since Java's inception. 2. It gives developers a chance to create a powerful, portable application that can not only target users on any Java-compatible platform, but also target their desired look-and-feel as well. 3. The distribution is easy to learn, but can also be used at varying levels of complexity to curtail to the programmer's wishes.