About javax.microedition.lcdui.Form class

Hi friends
just tell me about the Form class in J2me .
my question is that is List control can be supported by the form class OR simply we use the MIDlet class in the program
Just answer me..

List implements the displayable interface so you just use mildet class and to display the list, use setCurrent() method.
If this answer is not matching your requirement, then let me know.

Similar Messages

  • PDA Error:Unable to load class javax/microedition/lcdui/ItemCommandListner

    I am developing a small inventory application for a PDA.When i tested my application on Zier 31 PDA I am getting the above mentioned error.
    I download the midp4palm.zip and installed midp.prc on PDA. then the sample application runs on the PDA,
    But my application not runs properly instead of i am getting an error as shown above.
    My application uses midp2.1 profile and jsr75 but now i am not getting any error concernibg to that but getting a basic error as shown above.
    I think midp4palm supports the javax/microedition/lcdui/ItemCommandListner class?
    pls help me

    Thanks for reply.
    But I did dowloaded IBM's J9 and still i am getting the same problem.......
    is i ahve to do any configuration with IBM's J9.because when i removed Java H(midp.prc) from PDA i am getting an error No JVM installed like that.....it is nor recognising the J9?

  • Javax.microedition.lcdui.TextField.setChars exception

    Hi
    I am developing an application for Mobile Banking for my College Project the program need to send an SMS with the Name and PIN no. I am using Sun WTK 2.3 the program compiles and preverifies correctly but when the Submit button is pressed an Illegal exception is thrown.
    java.lang.IllegalArgumentException
         at javax.microedition.lcdui.TextField.setChars(+105)
         at javax.microedition.lcdui.TextField.setString(+27)
         at CheckBal.commandAction(+157)
         at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+282)
         at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
         at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
         at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
         at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)
    This is the code.....
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.io.IOException.*;
    import javax.microedition.io.*;
    import javax.wireless.messaging.*;
    public class CheckBal extends MIDlet implements CommandListener
    private Form form;
    private Command exit;
    private Command submit;
    private Display display;
    TextField t1;
    TextField t2;
    public CheckBal()
    display = Display.getDisplay(this);
    exit = new Command("Exit", Command.EXIT, 1);
    submit = new Command("Submit", Command.OK, 1);
    form = new Form("Check Balance");
    public void startApp()
    t1 = new TextField("First Name:", "",30, TextField.ANY);
    t2 = new TextField("Enter PIN:", "",4, TextField.ANY);
    form.addCommand(exit);
    form.addCommand(submit);
    form.append(t1);
    form.append(t2);
    form.setCommandListener(this);
    display.setCurrent(form);
    public void pauseApp()
    public void destroyApp(boolean unconditional)
    public void commandAction(Command command, Displayable displayable)
    if (command == exit)
    destroyApp(false);
    notifyDestroyed();
    if (command == submit)
    try{
    try{
    String s1 = t1.getString();
         String s2 = t2.getString();
         String s3 = s1+s2;
    MessageConnection conn = (MessageConnection)Connector.open("sms://:+919412130071");
         TextMessage msg = (TextMessage)conn.newMessage(MessageConnection.TEXT_MESSAGE);
         msg.setPayloadText(s3+ " Balance");
         conn.send(msg);
    } catch(Exception e) {
    t1.setString(e.toString());
         e.printStackTrace();
    catch(Exception ee) {
    t2.setString(ee.toString());
    catch(Error ee) {
    t2.setString(ee.toString());
    }

    Once again: you might want to look at some examples that are already out there.
    The IllegalArgumentException is throws in the midlet, judging by the stacktrace, so saying it orriginates from the servlet is not possible.
    Please do some more debugging. Check what you are sending, getting back and print some stuff in logs...
    Make sure the servlet works first: test it simply in your webbrowser, then try to get the midlet working.
    One tip: never count on length beeing more than -1, so simply do not use it!
    InputStream in = ...
    ByteArrayOutputStream bout = new ByteArrayOutputStream();
    byte[] buffer = new byte[512];
    int bs;
    while((bs = in.read(buffer)!=-1){
       bout.write(buffer,0,bs);
    String response = bout.toString();Much faster and works always.

  • Is anybody aware of javax.microedition.lcdui.ChoiceGroup.IaSLayout

    Hi all
    If anybody is aware of the class or interface javax.microedition.lcdui.ChoiceGroup$IaSLayout, Pls give a detail description of it.
    looking forward for the reply

    In my MIDlet I tried to extend this inner class as "class MyIaSLayout extends IaSLayout" and It works fine. but while obfuscating the jar file, a warning comes
    Warning: javax.microedition.lcdui.EChoiceGroup$EIaSLayout: can't find superclass
    or interface javax.microedition.lcdui.ChoiceGroup$IaSLayout
    Warning: there were 1 unresolved references to superclasses or interfaces.
    You may need to specify additional library jars (using '-libraryjars').
    Please tell me what option should I use with -keep to obfuscate it properly. Right now I am using the progaurd.jar as obfuscator.

  • Javax.microedition.lcdui   &   javax.microedition.midlet.MIDlet

    When I import the following statements i got an error that the library does not exist (either in eclips or netbeans):
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.MIDlet;
    I have installed the "Wireless Toolkit 2.5.2", but the problem is still exist.
    Any advice what should do??
    Thanks you in advance.

    Post in the correct forum. Either an Eclipse or NetBeans forum (most probably where you should post) or in one of the Java Mobility forums here:
    http://forum.java.sun.com/category.jspa?categoryID=22

  • Package javax.microedition.lcdui does not exist

    Hi, I'm new to J2ME.
    I have installed J2SE6.0 and Wireless Toolkit 2.5.
    When I run "javac HelloWorld.java" at command line,
    ouput =
    "HelloWorld.java:4: package javax.microedition.midlet does not exist".
    How to solve this simple problem?
    I'm using WindowsXP, is it required to set any CLASSPATH? Where can I find the J2ME library?
    Thank you very much!!!

    zaec
    Welcome to the forum. Please refrain from posting in old threads that are long dead. When you have a question, please start a topic of your own. Feel free to provide a link to an old thread if relevant.
    Also, please do not solicit off-forum email communication. I'm blocking your post on that account.
    db

  • Getting error javax.microedition.rms.RecordStoreException

    Hello ..
    I am create records in RMS .. and some time i am getting error like ..
    javax.microedition.rms.RecordStoreException: error finding first fit block
    at javax.microedition.rms.RecordStore.allocateNewRecordStorage(+76)
    at javax.microedition.rms.RecordStore.addRecord(+65)
    i dont knw why this error is coming and it comes some time not always .. any idea what is the problem with that .. ??

    i just added ur code to simple midlet, its working fine.
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.rms.*;
    public class Test extends MIDlet
         public Display display;
         public Test()
         try
         display = Display.getDisplay(this);
         catch(Exception e)
         Form form;
         public void startApp()
         form = new Form("Test");
         display.setCurrent(form);
         Store();
         retive();
         RecordStore _rs;
         public void Store()
         try
         byte[] data = "abcd".getBytes();
         if(_rs==null)
         _rs = RecordStore.openRecordStore("x", true);
         _rs.addRecord(data, 0, data.length);
         catch(Exception e)
         System.out.println("e "+e.toString());
         public void retive()
         try
         String temp =new String(_rs.getRecord(1));
         form.append(temp);
         }catch(Exception e)
         public void pauseApp()
         public void destroyApp(boolean unconditional)
    }

  • Package javax.microedition.midlet does not exist

    Hi:
    I am trying to run the Currency Converter MIDlet. I am using SUnONE4. I have got all the updates for the SUN ONE. When I compile the Converter directory.. i get the following errors.. which indicate that it can't find the javax.micoredition..packages.
    converter/ConverterMIDlet.java [11:1] package javax.microedition.midlet does not exist
    import javax.microedition.midlet.*;
    ^
    converter/ConverterMIDlet.java [12:1] package javax.microedition.lcdui does not exist
    import javax.microedition.lcdui.*;
    ^
    converter/ConverterMIDlet.java [13:1] package javax.microedition.rms does not exist
    import javax.microedition.rms.*;
    I havem't downloaded the J2ME since i presume that i don't need it since i have updated SunONe. There inside the SUNone i can see under the Device Emulator registory the J2ME wireless toolkit.
    Can anyon ehelp please.

    make sure you have the microedition classes are in your classpath
    --Senthil                                                                                                                                                                                   

  • Cannot find the class file for javax.microedition.io.ContentConnection

    I've downloaded and configured eclipse j2me plugin and am having no difficulty
    creating Midlets according to the eclipse documentation
    http://eclipseme.org/docs/createProject.html
    (Also I have sun java wireless toolkit 2.5.2)
    (I have imported wtk252 in window/preferences/j2me/dev mgmt
    and added the search directory where wtk252 resides.)
    However, after importing a ready-developed project into the same workspace
    one of the pieces of code continuously gives a class not found error for
    javax.microedition.io.ContentConnection
    It's clear that one project understands how to resolve paths in
    javax.microedition
    and the other one doesn't, but I'm not sure how to configure the build path
    using
    QuickFix
    ie I don't know physically what the name of the jar file with
    javax.microedition.io.ContentConnection in it is called.

    Er, thanks, (I think!)
    Wouldn't it be easier for folks if you told them to look for packages using the CLDC Generic Connection Framework which is already inside javax.microedition.io?
    By the time they've got GCF (which is used quite a lot,) they've got javax.microedition.io and they've therefore solved the problem!
    I'd imagine that you could spend ages looking for "JSR 37 / 139" and get nowhere.

  • RecordStoreFile.class under javax.microedition.rms.*

    Hi, I am developing an application program for Nokia Series 40.
    My program requires me to access file system, but Nokia Series 40 doesn't provide additional APIs (JSR 75).
    I assume that I may use RecordStoreFile class under javax.microedition.rms.* to open system directory, but somehow it doesn't allow me to use it. I get an error message saying 'The type RecordStoreFile is not visible...'
    What can I do?

    The recordstore is not meant to be used this way (and can't be used this way). If you can't access the filesystem by some JSR, or Nokia api, you simply cannot do that at all.

  • CLDC: Unable to load class javax/microedition/io/SocketConnection

    I'm trying to connect Palm (with PalmOS 3.5) to PC via sockets. Client application that is on PDA is compiled without error and deployed as well without problems. But when it tries to execute Connector.open(), IOException is thrown with the message "Unable to load class javax/microedition/io/SocketConnection". What is wrong with that? I guess i did everything well...

    Ok. I got it but not hte way I wanted. Maybe someone could explaine me. Instead of casting to SocketConnection, I casteded to StreamConnection that is a superinterfece for SocketConnection and the URI argument for Connector.open() remained the same, e.g. "socket://xxx.xxx.xxx.xxx:xxxx".
    What is the problem to SocketConnection? It is declared in CLDC and must be supported by vendors, but it's still unloadable...

  • Re: javax.microedition.media.MediaException: Unable to realize

    Dear all ,
    I'm getting the out of memory exeception when i'm trying to play large files of size 5mb .
    Because the byte array is not able to handle large data.\
    How can i pass the large files to audio player from file system.
    can any one help me out?
    Thanks,
    Purna

    hi,
    try {       
           vfrm.append("Stage 1\n");         // vfrm is a Form for video playback
           String resfile_name = "http://www.xxxx.com.tr/mobile/test.mpeg";
           StreamConnection c = (StreamConnection)Connector.open(resfile_name);
           InputStream in = c.openInputStream();
           vfrm.append("FileSize :"+String.valueOf(in.available()));
           vfrm.append("Stage 1.1\n");
           Player player = Manager.createPlayer(in, "video/mpeg"); // ------- Error on this line -------
           vfrm.append("Stage 1.2\n");
           player.realize();          
           vfrm.append("Stage 3");
           GUIControl gc;
           if ((gc = (GUIControl)player.getControl("GUIControl")) != null) {          
               vfrm.append((Item)gc.initDisplayMode(GUIControl.USE_GUI_PRIMITIVE, null));          
           vfrm.append("Stage 4");      
           player.start();
           vfrm.append("Stage 5");      
       } catch (Throwable pe) {
           vfrm.append("---"+pe.toString()+"\n");
           vfrm.append("err : "+pe.getMessage()+"\n");      
       }When this code works i am taking these outputs
    Stage1
    FileSize:706564Stage1.1
    --- javax.microedition.media.MediaException
    err : nullI am using a HTC PDA with Windows Mobile 6.0.
    I am so new about this subject. Please help me ...

  • ADF Mobile Client : Error while trying to import javax.microedition.*

    Hi,
    JDev throws errors at compile time when I try to deploy a sample ADF Mobile Client application.
    These errors are related to javax.microedition.io.* imports.
    Error(11,29): package javax.microedition.io does not exist
    Error(12,29): package javax.microedition.io does not exist
    Error(180,9): cannot find class HttpConnection
    Error(191,27): cannot find class HttpConnection
    Error(191,42): cannot find variable Connector
    Error(250,49): inconvertible types
    Error(303,40): cannot find variable HttpConnection
    Any pointers as to how these errors could be resolved?
    Is there a JDev Wireless extension that should be installed to resolve these J2ME related errors?
    For JDev 10g, I could locate one such extension called JWE here : http://www.oracle.com/technology/products/iaswe/archive/developer/index.html
    I could not find any similar extension for JDeveloper 11.1.3.
    Regards,
    Prasad.

    Hi, just want to make sure - did you install the ADF MObile Client extension yet? Please go to JDev-Help-Check for Updates-Official Oracle Extensions and Updates, and find Oracle ADF MObile Client Extension in the list. Check it, download it, and then restart JDev. Sounds like the extension was not installed, so it's not able to load any J2ME libraries.
    If you have downloaded the extension already, please go to project properties-libraries and classpath, and then see if the sample app is referencing some third party libraries, for example something from RIM. If so, please double check the path to the library.
    Once you installed the extension, you can also access the ADF Mobile Client developer guide - it contains all the documentation around what you need to install first. Please take a look and see what you need to install - at a minimum, you need to install BlackBerry JDE if you want to deploy to BlackBerry, and Windows Mobile Emulator if you want to test the app on Windows Mobile. Lastly, if you need to synchronize data, then you also need Oracle Database Lite MObile Server installation.
    Thanks,
    Joe Huang

  • Error Message "javax.microedition.media.Player" not found

    I downloaded a game but when I try to play it I get this message:
    Error starting BrainChallengeVol2_BlackBerry_8700_EN_IGP_101: Class 'javax.microedition.media.Player' not found.
    Does anyone know where I can find this software or if it is available for the 8700?
    Thanks,
    Carolyn

    WMP for Mac has been discontinued and is not written for Intel Macs.
    Instead you should use the free Flip4Mac QuickTime WM plugin available free from Flip4Mac.com
    If you choose to stick with WMP, you'll get better response if you use a forum dedicated to Microsoft's Mac products such as <http://groups-beta.google.com/group/microsoft.public.mac.office> rather than an Apple forum.
    Be sure to search the forum first in case someone has already had a similar question answered. You'll get your answer faster this way. Post your question in the forum if you don't find anything that helps you.

  • Can anyone direct me to the documentation for javax.microedition.pim

    I am trying to find the documentation for the above class. can anyone help please?

    Check this link
    http://www.forum.nokia.com/ME_Developers_Library/GUID-654A42A3-C453-411A-A153-366C08AEF058/javax/microedition/pim/package-summary.html

Maybe you are looking for

  • Crystal Reports for VS2010 cannot find crdb_adoplus.dll

    I installed Crystal Reports for VS2010 successfullly,   At least the report editor works without a problem and the viewer control can be placed on a form.  My problem is when I try to run it, I get the following exception: System.IO.FileNotFoundExcep

  • How to display a blob in a new window (without saving as file)

    Hi, I have been using the excellent as_pdf3 PLSql utility to create a pdf at run time. The result works great if I save the blob to file, however, I don't want to clutter up the "server", so I would like to send the blob down to the user by opening a

  • Keynote 09: can you control length of dashes in a dashed line?

    Previous versions let you control the length of the dashes in a dashed line. Now, not so much. Or have I missed some secret way to alter the length of the dashes? This retrogression in functionality is super annoying. Why would anyone think that (a)

  • Freezing Headers in Excel

    I'm dumping the output of a query into an excel file using application/vnd.ms-excel in my code and I need to know if there is a way to freeze the header row so it stays at the top when the user scrolls down the list.

  • How do I set home page?

    I want to make a specific page as my Home page for Firefox. Can someone please email me with the answer st. [email protected] THANKS