Posts

Showing posts with the label random

AquariumSC

Image
here is simple aquarium which has only a turtle in it who is randomly moving and if you wish you can rotate it to directions get AquariumSC all source jar package paket; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.io.IOException; import java.util.Random; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * @author sertac */ public class AquariumSC extends MIDlet implements CommandListener { Display d; Form f; Command cmdExit, cmdGoAquarium; CanvasSC canvasSC; Command cmdSelectAquarium; List l; Image[] backImages; Image resim; Image back; private TextField tfThreadSpeed; private ChoiceGroup cgPrintStats; private ChoiceGroup cgPrintBounds; private TextField tfBoundLimit; private TextField tfFastMove; private Command cmdHelp; public AquariumSC() { try { d = Display.getDisplay(this); f = new Form("AquariumSC"); f.setCommandListener(this); cmdGoAquarium = new C...