coolskater49
Technical User
hi,
when i try to compile and run my code i get the following errors -
"FruitMachine.java": cannot resolve symbol: method add (GamesLib.Reel)in class java.awt.Panel at line 54, column 16
this is the code -
The problem is with the "reelsPanel.add..." but i have code of the exact same format in a different project and that creates no errors.
Can anyone please help.
Thanks, Paul.
when i try to compile and run my code i get the following errors -
"FruitMachine.java": cannot resolve symbol: method add (GamesLib.Reel)in class java.awt.Panel at line 54, column 16
this is the code -
Code:
Panel reelsPanel = new Panel();
reelsPanel.setLayout(new GridLayout(1,3));
reelsPanel.add(reel[0]);
reelsPanel.add(reel[1]);
reelsPanel.add(reel[2]);
The problem is with the "reelsPanel.add..." but i have code of the exact same format in a different project and that creates no errors.
Can anyone please help.
Thanks, Paul.