import java.applet.*; import java.awt.*; import com.genuts.gameui.*; public class BaseTimeApplet extends Applet { private PlayField playfield; public void init() { setLayout(null); // Creates the playfield playfield = new PlayField(320, 240); playfield.setBackground(Color.white); // Creates the time label SpriteLabel label = new SpriteLabel(""); label.setFont(new Font("SansSerif", Font.BOLD, 24)); label.setColor(Color.gray); Sprite sprite = new MovingWrapper(new TimeWrapper(label), 2, 2); playfield.addSprite(sprite); // Displays the playfield add(playfield); } public void start() { // Activate the playfield playfield.setPause(false); } public void stop() { playfield.stop(); } }