
stackoverflow.com
https://stackoverflow.com/questions/24622968/awt-v…
java - AWT vs. Swing....why use Swing? - Stack Overflow
No, AWT is doing the painting, or more to the point, it provides access to the Graphics layer for Swing to paint on. Swing, unlike JavaFX, borrows a lot from the AWT API so it could take advantage of what was already available at the time. Things like Image, Graphics for example, come from the AWT API, but Swing brings a lot, include drag'n'drop, the transferable API, UndoManager, key bindings ...