|
INTERVIEW QUESTIONS
J2EE
JAVA
DETAILS
Question: Compare SWING components to standard AWT.
Answer: Swing is an extension of, and not a replacement for the AWT. There is some overlap between AWT and Swing (for example a Swing JButton component might be viewed as an improved functional replacement for an AWT Button component.) One of the advantages of Swing components is that because the components are not rendered on the screen by the operating system, the look and feel of a component does not change as the application or applet is executed on different platforms running under different operating systems. Furthermore, it is possible to cause Swing components to mimic the look and feel of a specific platform no matter what platform the program is running on. This is known as pluggable look and feel. Swing components support the JDK 1.1 Delegation Event Model. From an event handling viewpoint, Swing components operate the same as AWT components (except that Swing provides a number of new event types). Many Swing components don't have an AWT counterpart. A number of new and exciting components are included in the Swing library that don't exist in the AWT (tooltips, progress bars, trees, etc.)
|
|
|
Category |
Java Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 9184 users |
Added on |
7/15/2011 |
Views |
68005 |
Rate it! |
|
|
Question:
Compare SWING components to standard AWT.
Answer:
Swing is an extension of, and not a replacement for the AWT. There is some overlap between AWT and Swing (for example a Swing JButton component might be viewed as an improved functional replacement for an AWT Button component.) One of the advantages of Swing components is that because the components are not rendered on the screen by the operating system, the look and feel of a component does not change as the application or applet is executed on different platforms running under different operating systems. Furthermore, it is possible to cause Swing components to mimic the look and feel of a specific platform no matter what platform the program is running on. This is known as pluggable look and feel. Swing components support the JDK 1.1 Delegation Event Model. From an event handling viewpoint, Swing components operate the same as AWT components (except that Swing provides a number of new event types). Many Swing components don't have an AWT counterpart. A number of new and exciting components are included in the Swing library that don't exist in the AWT (tooltips, progress bars, trees, etc.) Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is layout manager ? How does it work ?
|
View Answer
|
|
What are the advantages of OOPL?
|
View Answer
|
|
How many methods do u implement if implement the Serializable Interface?
|
View Answer
|
|
How do I instantiate a bean whose constructor accepts parameters using the useBean tag?
|
View Answer
|
|
Searching a String
|
View Answer
|
|
Connecting to a Database and Strings Handling
|
View Answer
|
|
What is the difference between Serializalble and Externalizable interface?
|
View Answer
|
|
What is the serialization?
|
View Answer
|
|
What are synchronized methods and synchronized statements?
|
View Answer
|
|
What is synchronization and why is it important?
|
View Answer
|
|
What is the purpose of finalization?
|
View Answer
|
|
What classes of exceptions may be caught by a catch clause?
|
View Answer
|
|
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class
|
View Answer
|
|
What happens when a thread cannot acquire a lock on an object?
|
View Answer
|
|
What restrictions are placed on method overriding?
|
View Answer
|
|
What restrictions are placed on method overloading?
|
View Answer
|
|
How does multithreading take place on a computer with a single CPU?
|
View Answer
|
|
How are this() and super() used with constructors?
|
View Answer
|
|
What class allows you to read objects directly from a stream?
|
View Answer
|
|
What is the ResourceBundle class?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Java Interview Questions & Answers - Exam Mode /
Learning Mode
|