Advertisement
Guest User

Untitled

a guest
Apr 6th, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. package pack.script.game;
  2.  
  3. import java.awt.Color;
  4. import java.awt.Graphics;
  5.  
  6. import javax.swing.JFrame;
  7.  
  8. public class Display extends JFrame {
  9.     private static final long serialVersionUID = 1L;
  10.     public Display(String name, int width, int height) {
  11.         super(name);
  12.        
  13.         setSize(width, height);
  14.         setResizable(false);
  15.        
  16.         setLocationRelativeTo(null);
  17.         setDefaultCloseOperation(EXIT_ON_CLOSE);
  18.     }
  19.     public void fill(int color) {
  20.        
  21.     }
  22.     Graphics g;
  23.     public void pixel(int x, int y) {
  24.         g.setColor(Color.BLACK);
  25.         g.drawLine(x, y, x, y);
  26.     }
  27.     public void test() {
  28.        
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement