Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pack.script.game;
- import java.awt.Color;
- import java.awt.Graphics;
- import javax.swing.JFrame;
- public class Display extends JFrame {
- private static final long serialVersionUID = 1L;
- public Display(String name, int width, int height) {
- super(name);
- setSize(width, height);
- setResizable(false);
- setLocationRelativeTo(null);
- setDefaultCloseOperation(EXIT_ON_CLOSE);
- }
- public void fill(int color) {
- }
- Graphics g;
- public void pixel(int x, int y) {
- g.setColor(Color.BLACK);
- g.drawLine(x, y, x, y);
- }
- public void test() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement