import javax.swing.JFrame; public class test { public static void main(String[] args) { JFrame frame = new JFrame("Eyes"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.add(new Eyes()); frame.setSize(500, 500); frame.setLocationRelativeTo(null); frame.setVisible(true); } }