Can someone please explain me what's the difference between Swing and JFrame?
Are there any cases where AWT is more useful/advised to use than jframe or vice-versa?
Can someone please explain me what's the difference between Swing and JFrame?
Are there any cases where AWT is more useful/advised to use than jframe or vice-versa?
I think Swing is just a newer version, so you can use awt classes /interfaces like ActionListener for JButtons etc. I use swing, but for some things you need awt-packages like awt.event or awt.color.
JFrame is a class in swing, which is a package.
I'm not sure, if all I wrote is right, so correct me, if I wrote wrong stuff.
So in general the only choice (with standard GUI frameworks) is between Swing and JavaFX.