|
@ -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); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |