/** * Created by KAVITA on 11/12/2017. */ import javax.swing.*; import java.awt.*; public class page1 { JFrame frame; JButton play,settings; page1() { frame = new JFrame("GameName"); frame.setSize(200,200); frame.setLayout(new FlowLayout()); play = new JButton ("Play"); settings = new JButton ("Settings"); frame.add(play); frame.add(settings); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public static void main (String args[]) { new page1(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)