Java:GraphicsShell
From GPWiki
The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server. However, the GPWiki forums are still active! Come say hello.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class simplegraphics extends JFrame
{
public simplegraphics()
{
setVisible(true);
setSize(300,200);
}
public void paint(Graphics g)
{
//some code where painting occurs
}
public static void main(String args[])
{
simplegraphics SG = new simplegraphics();
SG.repaint();
}
}
|


