@@ -0,0 +1,1554 @@
+import java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0Aimport java.io.IOException;%0Aimport javax.swing.BorderFactory;%0Aimport javax.swing.JButton;%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JLabel;%0A%0A%0Apublic class Main extends JFrame implements ActionListener%7B%0A%0A%09JLabel chainReactionTitle;%0A%09JButton createServer, join;%0A%09public Main() throws IOException %7B%0A%09%09// TODO Auto-generated constructor stub%0A%09%09setLayout(null);%0A%09%09chainReactionTitle = new JLabel(%22Chain Reaction%22);%0A%09%09createServer = new JButton(%22Create New Server%22);%0A%09%09join = new JButton(%22Join%22);%0A%09%09add(chainReactionTitle);%0A%09%09chainReactionTitle.setBounds(150, 50, 200, 30);%0A%09%09add(createServer);%0A%09%09createServer.setBounds(100, 150, 200, 30);%0A%09%09createServer.setFocusable(false);%0A%09%09createServer.setBorder(BorderFactory.createRaisedBevelBorder());%0A%09%09add(join);%0A%09%09join.setBorder(BorderFactory.createRaisedBevelBorder());%0A%09%09join.setBounds(100, 200, 200, 30);%0A%09%09join.setFocusable(false);%0A%09%09createServer.addActionListener(this);%0A%09%09join.addActionListener(this);%0A%09%09setVisible(true);%0A%09%09setSize(400, 500);%0A%09%09//setResizable(false);%0A%09%09setDefaultCloseOperation(EXIT_ON_CLOSE);%0A%09%7D%0A%09public static void main(String%5B%5D args) throws IOException %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09new Main();%0A%09%7D%0A%09@Override%0A%09public void actionPerformed(ActionEvent arg0) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09if(arg0.getSource() == createServer)%0A%09%09%7B%0A%09%09%09this.dispose();%0A%09%09%09MyServer myServer = new MyServer(); %0A%09%09%7D%0A%09%09if(arg0.getSource() == join)%0A%09%09%7B%0A%09%09%09this.dispose();%0A%09%09%09Client client = new Client();%0A%09%09%09%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create Main.java