8
Things I would fix:
Don't do this:
import javax.swing.*;
import java.awt.*;
It could be problematic for the compiler to import a bunch of packages at once. If two packages provide the same type, both are imported, and the type is used in the class, a compile-time error occurs. This is describ...