Browse Source

Created Basic UI

remotes/origin/menu
fdai7012 11 months ago
committed by Julian
parent
commit
5c0f7719d4
  1. 26
      src/main/java/pacmanGame/Program.java

26
src/main/java/pacmanGame/Program.java

@ -1,8 +1,34 @@
package pacmanGame; package pacmanGame;
import java.awt.*;
import javax.swing.*;
public class Program { public class Program {
public static JTextArea textArea;
public static void main(String[] args) { public static void main(String[] args) {
createAndShowGUI();
}
private static void createAndShowGUI() {
JFrame frame = new JFrame("PacmaaaAAAYYYHAAAaaam");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(500, 665);
textArea = new JTextArea("...");
textArea.setEditable(false);
textArea.setFocusable(false);
textArea.setBackground(Color.black);
textArea.setForeground(Color.blue);
Font font = new Font("Consolas", Font.PLAIN, 15);
textArea.setFont(font);
frame.add(textArea, BorderLayout.CENTER);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
} }
} }
Loading…
Cancel
Save