Why is Swing preferred over AWT?Which Swing component could be used for playing a video on it?
Advantage of using Swing over AWT
java;gui;swing;video;awt
AWT is older than Swing and supports only a limited set of components. Otherwise you have to write your own such as tables/data grids for example (typically, you will have to write your own video player, good luck !). Swing is more modern as Sun engineers learned from their AWT mistakes and made something better, albeit more complex. Both Swing and AWT are event-based so if you know event-driven programming you will be at home. The learning curve is a bit steeper with Swing because of the larger number of available classes, though by practicing a bit with tutorials you should quickly be fine.Check out this IBM presentation on SWT, Swing & AWT, it really is a good read. Also AWT vs Swing.As to how you can play video on Java: https://stackoverflow.com/questions/4569490/how-to-play-video-in-java-using-swing