Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PROBLEM WITH DRAWING PANEL

807601Mar 12 2008 — edited Mar 12 2008
	public static void displayGraph() {
		DrawingPanel panel = new DrawingPanel(550, 560);
		Graphics g = panel.getGraphics();
		g.setColor(Color.YELLOW);
		g.fillRect(0, 0, 30, 550);
		g.fillRect(0, 500, 30, 550);
	}
Error message :
java:40:cannot find symbol
symbol: class DrawingPanel
I had imported the awt already. Fugure what is the problem?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2008
Added on Mar 12 2008
20 comments
750 views