import javax.swing.*; public class main { public static void main(String args[]){ mousegui go=new mousegui(); go.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); go.setSize(500,400); go.setVisible(true); } }