2009年8月7日 星期五

JPanel background

The easiest way to do this is to extend JPanel and override the paintComponent method.

public void paintComponent( Graphics g )
{
super.paintComponent( g );
Graphics2D g2d = (Graphics2D) g;
}
cf