Im making a simple MP3 player with play/pause button that includes 5 songs with 5 images. Here is the code I have so far, which Im not able to compile. It says "cannot find symbol - class Stop". What code am I missing? Any help is appreciated.
import greenfoot.*; /** * Write a description of class Jukebox here. * * @author (your name) * @version (a version number or a date) */ public class JukeBox extends World { private String[] buttons = {"A", "S", "D", "F", "G"}; private String[] buttonImage = {"What Do You Mean.jpg","Writing's On the Wall.jpg","Rude.jpg","Lean On.jpg","Hello.jpg"}; private String[] buttonSongs = {"Hello.mp3", "Rude.mp3", "What Do You Mean.mp3", "Writing's On the Wall.mp3","Lean On.mp3"}; private int [] buttonType = {1,1,1,1,1}; public JukeBox() { super(600, 400, 1); makeButtons(); } private void makeButtons() { for(int i = 0; i < buttons.length; i++) { Button button = new Button ( buttons[i], buttonSongs[i]+ "",buttonImage[i] + "", buttonType[i]); addObject(button, i*63 + 50, 140); addObject(button, i,160); Stop stop = new Stop(); addObject(stop, 100, 350); Play play = new Play(); addObject(play, 180, 350); } } }