In my paint method, I tried calling the methods from another class it looks theoretically correct to me, but when I compile I get the error cannot resolve symbol. Can someone pls explain why?? Thanks. Newbie here.
} ----------------------------------------------------------- public void displayCylinder(Graphics g, int x, int y, String clicked) { if (clicked.equals("wine") ) { g.setColor(Color.red); g.drawRect(x, y+20, 30,100); }
if (clicked.equals("beer") ); { g.setColor(Color.orange); g.drawRect(x, y+20, 30,100); } }
} ------------------------------------------------------------ public void displayBox(Graphics g, int x, int y, String clicked) { if ( clicked.equals("noodles") ) { g.setColor(Color.yellow); g.drawRect(x, y+35, 250,30); }