import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; /** * Write a description of class Button here. * * @author (your name) * @version (a version number or a date) */ public class Button extends Actor { public Button() { setImage(new GreenfootImage(" Try again ", 30, Color.BLACK, Color.RED)); } public void act(); if(greenfoot.mouseClicked(this)) { CrabWorld gw = (CrabWorld) getWorld(); gw.addObject(new Crab ().(257,300); gw.Prepare(); gw.resetVariables(); gw.removeObject(this); } }