Get up to 80 % extra points for free! More info:

Discussion: Differences between AWT and Swing

Activities
Avatar
Eduke Ohien Stephen:1/27/2017 4:36

Please i need someone to help me differentiate between Awt and Swing

Reply
1/27/2017 4:36
welcome to a world of possibilites
Avatar
Replies to Eduke Ohien Stephen
David Capka Hartinger:1/27/2017 6:54

Both Swing and AWT are old Form frameworks for the Java language. Swing is better to work with and allows you to use "looks and feels" (skins). AWT is "heavy-weight" and harder to work with. However, you should use JavaFX, which is the most modern approach to create form applications in Java.

Up Reply
1/27/2017 6:54
You can walk through a storm and feel the wind but you know you are not the wind.
Avatar
ATUAHENE OPPONG JONES:5/2/2017 13:45

Where possible, AWT uses native components. As in, under Windows it will use Window’s buttons, etc. This is really good for accessibility, because other programs like screen readers and such can interoperate perfectly with these components already. It does mean that extending the functionality of these components, changing the way they look, etc, is next to impossible. Many classes are final, and cannot be subclassed. Because they use the operating system’s native components, they are often limited to the subset of capabilities which are common to all target windowing operating systems. The look and feel is also inconsistent between different operating systems.

Java Swing, on the other hand, uses virtual components, which you can subclass to your heart’s content, and can change their behavior and look. They look and behave identical across all operating systems, and are far more full-featured than the AWT components.
For creating things like rich textfields with emoticons, Swing is the way to go.

Up Reply
5/2/2017 13:45
Technology For Life
Avatar
User has been banned:3/8/2021 8:12

The main difference between AWT and Swing in Java is that AWT is Java's original platform dependent windowing, graphics and user interface widget toolkit while Swing is a GUI widget toolkit for Java that is an extension of AWT.

Visit To Know More : JAVA Training JAVA Training

 
Up Reply
3/8/2021 8:12
Avatar
Bhawna Singh
Member
Avatar
Replies to Eduke Ohien Stephen
Bhawna Singh:6/29/2022 3:37

AWT stands for “Abstract Window Toolkit”. It is an API used to develop window-based applications in Java. This abstract window toolkit comprises various components like the classes, methods, label, text field, button, etc which are used for designing and managing GUI. While swing is a graphical user interface (GUI) and a part of Oracle’s Java Foundation Classes that are used to design different applications. Swing was developed to provide a more advanced set of GUI components like JTextField, JCheckbox, JMenu, etc.

 
Up Reply
6/29/2022 3:37
Avatar
Malayah
Member
Avatar
Malayah:1/5/2023 8:41

This site is all about the details that are interlinked with Last.fm apps and scripts, so if you think this can help then that would be best for many reasons. You all will be able to gather more details on find more web design freelance as that can be of great help here now. Just look into this and you will be able to learn many things. You can also join the forum and find the details that can be shared as well.

 
Up Reply
1/5/2023 8:41
To maintain the quality of discussion, we only allow registered members to comment. Sign in. If you're new, Sign up, it's free.

6 messages from 6 displayed.