×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    5

    J2ME Polish Error On ImageItem, Please help

    Hi, All i am newbie here and its my first post here even i am newbie in j2me and make a app.
    and now i am transforming from default gui to polish gui.

    and


    this code in not working

    try{

    imgWar=Image.createImage("/res/warning.png");
    imgOk=Image.createImage("/res/ok.png");
    logo=Image.createImage("/res/logo.png");

    pasForm.append(new ImageItem("hi",logo ,ImageItem.LAYOUT_CENTER | ImageItem.LAYOUT_NEWLINE_BEFORE | ImageItem.LAYOUT_NEWLINE_AFTER, "RealGuard"));//here is error


    }catch(Exception e){
    Logging.Log(new Log(101,e.toString()));
    }

    its working fine with import javax.microedition.lcdui.* but not with import de.enough.polish.ui.*;


    have you any idea....... please replay fast

    and thanks...................


    This error msg shown when cursor in on imageitem code
    no suitable constructor found for ImageItem(java.lang.String,de.enough.polish.ui.Image,int,java.lang.String)
    constructor de.enough.polish.ui.ImageItem.ImageItem(java.lang.String,javax.microedition.lcdui.Image,int,java.lang.String,int,de.enough.polish.ui.Style) is not applicable
    (actual and formal argument lists differ in length)
    constructor de.enough.polish.ui.ImageItem.ImageItem(java.lang.String,javax.microedition.lcdui.Image,int,java.lang.String,int) is not applicable
    (actual and formal argument lists differ in length)
    constructor de.enough.polish.ui.ImageItem.ImageItem(java.lang.String,javax.microedition.lcdui.Image,int,java.lang.String,de.enough.polish.ui.Style) is not applicable
    (actual and formal argument lists differ in length)
    constructor de.enough.polish.ui.ImageItem.ImageItem(java.lang.String,javax.microedition.lcdui.Image,int,java.lang.String) is not applicable
    (actual argument de.enough.polish.ui.Image cannot be converted to javax.microedition.lcdui.Image by method invocation conversion)
    constructor de.enough.polish.ui.ImageItem.ImageItem(java.lang.String,java.lang.String,de.enough.polish.ui.Style) is not applicable
    (actual and formal argument lists differ in length)
    constructor de.enough.polish.ui.ImageItem.ImageItem(java.lang.String,java.lang.String) is not applicable
    (actual and formal argument lists differ in length)
    ----
    (Alt-Enter shows hints)
    Last edited by meghraj37; 2012-06-02 at 21:05. Reason: oh sorry i forgot to add error msg

  2. #2
    Registered User
    Join Date
    Jun 2012
    Posts
    5

    Re: J2ME Polish Error On ImageItem, Please help

    i am still waiting......

  3. #3
    Nokia Developer Expert
    Join Date
    May 2012
    Posts
    224

    Re: J2ME Polish Error On ImageItem, Please help

    Hi meghraj37,

    de.enough.polish.ui.ImageItem.ImageItem(String, Image, int, String) method 2nd argument is of type javax.microedition.lcdui.Image not de.enough.polish.ui.Image. To fix the issue add only following imports.

    import javax.microedition.lcdui.Image;
    import de.enough.polish.ui.Form;
    import de.enough.polish.ui.ImageItem;

Similar Threads

  1. FileConnection Error in J2ME Polish
    By divyas in forum Mobile Java General
    Replies: 5
    Last Post: 2010-06-03, 13:54
  2. error while installing j2me polish
    By vinoy_george99 in forum Mobile Java General
    Replies: 0
    Last Post: 2009-05-31, 04:16
  3. Replies: 2
    Last Post: 2009-05-21, 06:14
  4. J2ME Polish UTF-8 sequence error
    By elaltaico in forum Mobile Java General
    Replies: 1
    Last Post: 2009-05-16, 09:00
  5. J2ME polish build.xml error
    By elaltaico in forum General Development Questions
    Replies: 0
    Last Post: 2009-05-14, 18:59

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •