Difference between AWT and Swing

What is the difference between AWT and Swing?

Classes in swing are not OS dependent. They don’t create peer components, so they are light weight unlike AWT.
They don’t take the look and feel of the target platform so they have a consistent appearance

What are all the components used in Swing ?

JButton, JCheckBox, JChoice, JMenu, JTextComponent, JScrollbar, JCanvas, JLabel, etc
Java Stream Tokenizer - What is meant by Stream Tokenizer?
Java Stream Tokenizer - The StreamTokenizer class takes an input stream and parses it into " allowing the to be read one at a tokensname...
What is meant by getCodeBase and getDocumentBase method?
Java getCodeBase & getDocumentBase - The getCodebase() method is also commonly used to establish a path to other files or folders that are in the same location as the class being run...
30 Core Java Interview Questions and Answers for Freshers
Core java interview questions and answers for freshers - What are the basic features of java?, How java becomes object oriented?, How java becomes robust?, How a Java program compiles?
Post your comment