what is the difference between AWT and SWING what is the
advantage of using swing?
Answer Posted / modi[achir communication]
Difference between AWT and SWING:
Swing provides a richer set of components than AWT. They are
100% Java-based. There are a few other
advantages to Swing over AWT:
• Swing provides both additional components like JTable,
JTree etc and added functionality to AWT-replacement
components.
• Swing components can change their appearance based on the
current “look and feel” library that’s being used.
• Swing components follow the Model-View-Controller (MVC)
paradigm, and thus can provide a much more
flexible UI.
• Swing provides “extras” for components, such as: icons on
many components, decorative borders for
components, tool tips for components etc.
• Swing components are lightweight (less resource intensive
than AWT).
Java
45
• Swing provides built-in double buffering (which means an
off-screen buffer [image] is used during drawing
and then the resulting bits are copied onto the screen. The
resulting image is smoother, less flicker and quicker
than drawing directly on the screen).
• Swing provides paint debugging support for when you build
your own component i.e.-slow motion rendering.
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is binary tree in java?
Explain about OOPS concepts and fundamentals.
What all methods are used to prevent thread execution ?
What does a za z0 9 mean?
Define nashorn in java8.
What will happen to the exception object after exception handling?
What is object in java?
What is the += operator called?
How do you escape sequences in java?
What are the steps in the jdbc connection?
How is garbage collection controlled?
Write a program in java to establish a connection between client and server?
What's the access scope of protected access specifier?
In which language java is written?
How do you declare a string variable?