package CustomJPanel; import javax.swing.JFrame; public class Main { public static void main(String[] args) { JFrame jframe = new JFrame("My Custom JPanel Counter GUI"); jframe.setSize(300, 200); jframe.add(new MyJPanel()); jframe.setVisible(true); } }