How to get around choosing wich class to start..

Hi all!
When starting the emulator, all the classes lists, and you choose which is used to start the program. How can I make it go straight to that class as default?
thanks in advance for all helps and hints

Here is some of the code to the second class:
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import javax.microedition.media.*;
import javax.microedition.media.control.*;
class GameCanvas extends Canvas implements CommandListener {
    private Command cmdExit;  // Exit midlet.
    private Command cmdMenu; // Toggle menu.
    private Midlet midlet;
    private Image bg, cup = null;
    private Display  display;
    private int xPos; // For the mesuringcup movement.
    private String cupHolder = "/cup.gif";
    private String bgHolder = "/lvl1_BG.jpg";
    private boolean showCup = true;
    public GameCanvas(Midlet midlet, Display display) {
        this.midlet = midlet;
        this.display = display;
        // Create exit command & listen for events
        cmdExit = new Command("Exit", Command.EXIT, 1);
        cmdMenu = new Command("Menu", Command.SCREEN, 1);
        addCommand(cmdExit);
        addCommand(cmdMenu);
        setCommandListener(this);
        try {
            cup = Image.createImage(cupHolder);        
        } catch (Exception e) {System.err.println("Error during image creation" + e);}      
    }btw: Thanx for the help so far guys...

Similar Messages

  • HT1222 My phone is telling me about a Software Update but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?

    My phone is telling me about a Software Update 7.1.1 but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?

    See if this helps:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212

  • Since I upgraded to os 5.1 for my iPhone I can no longer type in reminders. Any suggestions how to get around having to use siri for reminders?

    since I upgraded to os 5.1 for my iPhone I can no longer type in reminders. Any suggestions how to get around having to use siri for reminders?

    Unfortunately, I have a very similar problem. Since I upgraded to os 5.1 on my new iPhone 4S the reminders screen will not add new reminders or scroll up and down. What's more strange is the screen will still scroll side to side allowing access to the Completed list, and both the Completed list and Date functions work normally so this must be an upgrades glitch.

  • I accepted/installed an update for iMovie and it turns out that this version is not compatible with my graphics card. So now I can no longer open or use iMovie.  Any ideas on how to get around this - how to revert to the previous version.

    I accepted/installed an update for iMovie and it turns out that this version is not compatible with my graphics card. So now I can no longer open or use iMovie.  Any ideas on how to get around this - how to revert to the previous version??

    Look in your Applications folder.  If your system behaved as expected, you should have an iMovie 9.0 folder in your Applications folder.  Apple moved the old version there as even they suspected the new versions was a train wreck.

  • Please help! We got a used Mac Mini and we don't have the former owner's password, so we can't install anything like flash player.  Does anyone know how to get around this?

    Please help! We got a used Mac Mini and we don't have the former owner's password, so we can't install anything like flash player.  Does anyone know how to get around this? I don't know how to wipe the hard drive, and the support online doesn't seem to work.

    As posted previously:
    Reinstall OS X without erasing the drive
    Do the following:
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    If installing Leopard the process is similar in some respects.  If you wish to begin anew then after selecting the target disk click on the Options button and select the Erase and Install option then click on the OK button.  To install over an existing system do the following:
    How to Perform an Archive and Install
    An Archive and Install will NOT erase your hard drive, but you must have sufficient free space for a second OS X installation which could be from 3-9 GBs depending upon the version of OS X and selected installation options. The free space requirement is over and above normal free space requirements which should be at least 6-10 GBs. Read all the linked references carefully before proceeding.
    1. Be sure to use Disk Utility first to repair the disk before performing the Archive and Install.
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Do not proceed with an Archive and Install if DU reports errors it cannot fix. In that case use Disk Warrior and/or TechTool Pro to repair the hard drive. If neither can repair the drive, then you will have to erase the drive and reinstall from scratch.
    3. Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When you reach the screen to select a destination drive click once on the destination drive then click on the Option button. Select the Archive and Install option. You have an option to preserve users and network preferences. Only select this option if you are sure you have no corrupted files in your user accounts. Otherwise leave this option unchecked. Click on the OK button and continue with the OS X Installation.
    4. Upon completion of the Archive and Install you will have a Previous System Folder in the root directory. You should retain the PSF until you are sure you do not need to manually transfer any items from the PSF to your newly installed system.
    5. After moving any items you want to keep from the PSF you should delete it. You can back it up if you prefer, but you must delete it from the hard drive.
    6. You can now download a Combo Updater directly from Apple's download site to update your new system to the desired version as well as install any security or other updates. You can also do this using Software Update.

  • My downloads of iTunes and related software onto my Windows PC fails every time with error message that the software does not have valid signature.  How to get around this problem?

    I have trouble downloading iTunes software and related software like the new ios8 on both my desktop--Windows 7, and my laptop--Windows Vista, because I keep getting error messages saying the software has been deleted because invalid signature.   I have tried download and install and I have tried just download, but neither method works.   So I am stuck with the older software and my new iPad 2 Air isn't connecting because I need ios8 apparently.
    I have an iPhone 5 and a new iPad 2 Air.
    How to get around the Windows problem, please?
    Thank you!

    bump

  • How To Get Around iCloud Terms

    How To Get Around iCloud Terms & Conditions Error After iOS 7 Upgrade
    It is being widely reported that some users are experiencing errors with iCloud after upgrading to iOS 7.  The issue has to do with the iCloud Terms & Conditions which were changed with the new version of iOS.  After upgrading, users are prompted to accept the new iCloud Terms & Conditions but when they attempt to do so they get a “Unable to connect to server” error.  This then disables iCloud on their device

    Hi nene
               in case of invoice without PO, The payment term will be selected from the vendor master data (in View : payment terms transaction in XK03).
    Check payment term in  master data is exist or not.
    the data is in the table LFB1 : Field ZTERM
    Regards
    Wiboon

  • Hi i've just signed up for lightroom and when i go into the develop screen i get a blue screen with a cross through it and it says cant load picture. any idea how to get around this?

    hi i've just signed up for lightroom and when i go into the develop screen i get a blue screen with a cross through it and it says cant load picture. any idea how to get around this?

    I'm having same problem in develop module which is laggy as hell compared to LR5.8
    Library module is fine but develop module is slow as hell....5 seconds to make ANY adjustment.

  • My daughter forgot her password, any suggestions of how to get around the password without deleting everything she has on it?

    She has never synced her ipod touch to iTunes, any suggestions of how to get around the password without deleting everything she has on the device?  Apple support recommended recovery mode, but doesn't that erase everything on the ipod?

    You are out of luck but a Date Recovery company may be able to help if the iPod does not have iOS 8.
    If there is an iCloud backup you can restore from that.
    You can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • HT1212 My phone says 'iphone is disabled, try again in 22, 198, 686 minutes'!! Can anyone tell me how to get around this?

    My phone says 'iphone is disabled, try again in 22, 198, 686 minutes'!! Can anyone tell me how to get around this?

    I'm experiencing the same issue, if I restore the devise, won't I lose everything? -- I'm hoping there's another alternative to losing everything from one day to the next :-/
    Thanks in advance for your support :-)

  • I'm trying to add the email address for my verizon phone to iMessaging.  In order to verify, you have to reply to an imbedded link in the message.  Unfortunately the link is truncated.  Any idea how to get around this?

    I'm trying to add the email address for my verizon phone to iMessaging.  In order to verify, you have to reply to an imbedded link in the message.  Unfortunately the link is truncated.  Any idea how to get around this?

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (122986)

  • Transaction Lock in Forms (TM,TX) How to get around?

    Hi,
    what is industry practice to avoid blocking locks bringing application processing to a standstill.
    I have few core table in material module e.g. material master, request, receipt, issues, whenever multiple user start using their respective forms such ac material_request, material_receipt, material_issue, Transaction Locks are acquired. and unless and until blocking user commits his transaction nobody else is able to work. how to get around this problem.
    There is lot of tech.material on net which tells me how to find blocking lock and objects, but nobody is giving answer how to avoid this situation.
    what is industry practice to avoid blocking locks bringing application processing to a standstill.
    regards

    Risky Solution !!
    I am facing more problem in to material requisition form, because many user want to request material. they open this form start entry and when they stuck for information they just keep that form open, in background the tables are locked because of change in data-block. now what do i do.
    regards

  • I have blocked my iphone 4 and tried to restore it but hen I did it asked me for my itunes password that I dont remember. My phone seems to be stuck on this stage now :( anyone know how to get around this? Thanks

    I have blocked my iphone 4 and tried to restore it but hen I did it asked me for my itunes password that I dont remember. My phone seems to be stuck on this stage now anyone know how to get around this? Thanks

    There is no way to get around activation lock, you must recover your password for the AppelID that it is locked to:
    http://iforgot.apple.com
    iCloud: Activation Lock

  • Anybody know how to get Acrobat 7.0 Standard to start working again on Windows 8?

    Anybody know how to get Acrobat 7.0 Standard to start working again on Windows 8?

    Hi w3oody,
    Acrobat 7 Std. is a very old software and has not been tested and is incompatible with Windows 8.
    Please consider purchasing the subscription to the latest version of Acrobat 11.
    Regards,
    Rave

  • How to get variable from another class?

    I have 2 classes. In first I have int variable. In second class I need to get this variable value. How I can make it?
    import javax.microedition.lcdui.*;
    import java.io.*;
    import java.util.*;
    public class ChooseLessons extends Form implements CommandListener, ItemStateListener
         ChoiceGroup lessons;     // Choice Group of preferences
         Dictionary     dictionary;
         int volumeSize;
         ChooseLessons(Dictionary dictionary)
              int volumeSize = 15;
         public void commandAction(Command c, Displayable s)
              if (c == Dictionary.BEGIN_CMD) {
                   new TeachForm(dictionary, this);
    import javax.microedition.lcdui.*;
    import java.util.*;
    public class TeachForm extends Form implements CommandListener     
         Dictionary               dictionary;
         ChooseLessons          lessons;
         TeachForm(Dictionary dictionary, ChooseLessons lessons) {
              super(Locale.WORD);
              this.dictionary = dictionary;
              this.lessons = lessons;
              lessons.volumeSize(); // HERE I NEED VARIABLE VALUE FROM PREVIOUS CLASS
    }Edited by: Djanym on Mar 16, 2009 4:43 PM

    This is a classic problem that coders run into when trying to get their head around object-oriented programing. Since you have a class that should be modeled after a real world object, as far as that object is concerned, no one else needs to know the details of it - without asking nicely. This is where you should set up some getters and setters, which are methods that allow fields in a class to reveal themselves or allow their states to be changed in a orderly fashion.
    There are a number of fields that never need to be known outside of the class. Then there are some fields you would like to let people know about, but don't want them to have the ability to change them. In the example below, there are to getter methods allow return of the necessary fields. If you made these public, there is a possibility that someone utilizing this field may change it outside of its intended use, or access them without them being ready for public consumption.
    Class test {
    //These private variables are only visible from the class
    private int grade1 = 0;
    private int grade2 = 0;
    private int grade3 = 0;
    private float average = 0;
    private int gradeboost = 0;
    //This method sets the gradeboost field to one desired by the instructor
    void setboost(int boost) {
    gradeboost = boost;
    //These methods accept test scores and compute the average for three test
    //Notice that the calculated average may not be the true average of the three test scores
    //because of the possibility of gradeboost calculation being greater than 1
    void test1(int score) {
             grade1 = score;
             average = (grade1 + grade2 + grade3 + gradeboost)/3;
    void test2(int score) {
             grade2 = score;
             average = (grade1 + grade2 + grade3 + gradeboost)/3;
    void test3(int score) {
             grade3 = score;
             average = (grade1 + grade2 + grade3 + gradeboost)/3;
    //This is a getter method, which provides read access to the private variable average
    //If someone just had public access to the grades and wanted to take their own average
    //They would miss how the gradeboost field affects the final outcome.
    float getAverage() {
        return average;
    //Here is a getter method, which accepts an argument to determine which test score to return
    //Notice that this isn't the true testscore, but it has been modified by the gradeboost field.
    //If the user had public access to the true testscore, it wouldn't take into account the gradeboost calculation!!
    //This is how a getter can control exactly what a user has access to.
    float get testScore(int test) {
    float testresult = 0;
    if (test = 1) {
           testresult = (grade1+ gradeboost) / 3;
    if (test = 2) {
           testresult = (grade2+ gradeboost) / 3;
    if (test = 3) {
           testresult = (grade3+ gradeboost) / 3;
    return testresult;
    }

Maybe you are looking for

  • How to turn off the Stretch Alignment feature?

    Hi, I am just learning how to use the text formatting options and have been experimenting but for some reason  any new text box I create now and type something, the Stretch Alignment is on and stretching everything I type.  How do I turn that off? Th

  • Purchase price variance in subcontracting order

    Our customer has the following scenario:      Purchase account is posted with the value of stock subsequently purchase price variance is a legal account      Material ledger is active      Inventories are managed with standard price for each mater

  • How can i get back the text of child

    I did an application to connect a db and show the datas in table.but the text of all such as button or textview seems disappear.how can I get them back? Here's the snap picture of my problem. http://img191.photo.163.com/rocboy_yang/13457324/655578057

  • Alignment issues in my smartform

    Hi Gurus, I am facing alignment issues in my smartform . My Output with LP01differs from that of Logica Printer LOCAL.Kindly throw some light on the same. Deepak

  • I can't download the latest version of iTunes

    I tried re-installing Itunes from the website, but a message says "Errors occurred during installation before iTunes could be configured." "Your system has not been modified." I don't know what the last sentence mean,but can you help me?