All pastes #53192 Raw Edit

Anonymous

public java v1 · immutable
#53192 ·published 2006-05-03 12:22 UTC
rendered paste body
package smultroNET.gfx;import javax.swing.*;import java.awt.*;import java.util.*;import java.lang.*;import smultroNET.game.*;// THIS IS A TEST!!! so "excuse me" for the nice layout :)public class Gfx extends JFrame{		private Graphics g;	int xx = -100;	int yy = 50;	public Gfx(){	    setSize(800,600);  	    setTitle ("SmulTroNET, beta-beta version");	    setVisible(true);		setBackground(Color.black);	    g = getGraphics();		if (g == null) System.out.println("UIHF F F(#H NKJ ");	}	public void updateScreen(){		xx+= 11;		if (xx >= 500) {xx = 0; yy+=11;}		repaint();	}	public void paint( Graphics g ){		g.setColor(Color.red);		g.fillRect(xx,yy,10,10);		System.out.print("#");	}	}