Question: what is the difference between swing and awt components?
Answer: AWT components are platform dependent. Swing components are made in purely java and they are platform independent. ... Swing components are called "lightweight" because they do not require a native OS object to implement their functionality. JDialog and JFrame are heavyweight, because they do have a peer.