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)

Reply With Quote

