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?