package me.Game.Justyce.Generated; import java.awt.Button; import java.awt.Color; import java.awt.TextField; import javax.swing.JFrame; public class BeforeStart extends JFrame { Button untitled_1; static TextField untitled_2; Boolean ok = true; public BeforeStart() { if(ok == true){ this.setLayout(null); setupGUI(); } } void setupGUI() { untitled_1 = new Button(); untitled_1.setLocation(819,348); untitled_1.setSize(151,29); untitled_1.setBackground( new Color(-256) ); untitled_1.setLabel("Play"); add(untitled_1); untitled_1.addActionListener(new StartTOPlay()); untitled_2 = new TextField(); untitled_2.setLocation(819,312); untitled_2.setSize(155,25); untitled_2.setForeground( new Color(-1) ); untitled_2.setBackground( new Color(-16777012) ); untitled_2.setText("Your pseudo"); untitled_2.setColumns(10); add(untitled_2); setTitle("ClickCraft"); setSize(1600,900); setVisible(true); setResizable(true); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public void Launch() { new BeforeStart(); } }