Java GUI Framework Question:
What are differences between Swing and AWT?
Answer:
One of the classic java swing interview questions and mostly asked on phone interviews. There is couple of differences between swing and AWT:
1) AWT component are considered to be heavyweight while Swing component are lightweights
2) Swing has plug-gable look and feel.
3) AWT is platform depended same GUI will look different on different platform while Swing is developed in Java and is platform dependent.
1) AWT component are considered to be heavyweight while Swing component are lightweights
2) Swing has plug-gable look and feel.
3) AWT is platform depended same GUI will look different on different platform while Swing is developed in Java and is platform dependent.
Previous Question | Next Question |
Does Swing is thread safe? What do you mean by swing is not thread-safe? | Why Swing components are called lightweight component? |