There are two toolkits for writing GUI in Java, namely AWT and Swing. Swing is an extension of AWT, featuring richer components and methods compared to AWT. Both AWT and Swing can be used across platforms; however, AWT UI styles may vary with different system …

