lwuit-dialog

How can I Dispose Dialog box From LWUIT Component

本秂侑毒 提交于 2019-12-31 07:20:46
问题 I am developing one project using LWUIT, Midlet mobile Application. when I press number keys a dialog box will open. when i press the keys #,0,* Dialog should be close. I am using Dialog.dispose() method to close dialog. But it is not working. Below is my Code. Can anyone tell me what is the problem in my code? public class javaForm extends Component implements ActionListener { Dialog d=new Dialog(); public void keyPressed(int key){ System.out.println("Key pressed :"+key); switch(key) { case

How to Resize Dialog Box in LWUIT?

自闭症网瘾萝莉.ら 提交于 2019-12-11 09:48:08
问题 I have Created one Program Using Lwuit,Midlet. In that program I am showing Dialog box on the screen (LWUIT component) when I press mobile key. It shows default size. But I want to resize it. How can I resize the Dialog Box in LWUIT ? 回答1: Use this Dialog#Show method for showing resized Dialog. For example, Dialog dialog = new Dialog("Information"); dialog.show(0, 100, 11, 11, true); 来源: https://stackoverflow.com/questions/8799366/how-to-resize-dialog-box-in-lwuit

Is this possible to use lwuit.Dialog with javax.microedition.lcdui.Canvas in wireless toolkit 2.5.2?

百般思念 提交于 2019-12-02 14:15:00
问题 I am using javax.microedition.lcdui.Canvas for drawing my string on the screen. But I also need one dialog window for some purpose. So I am using lwuit package ( com.sun.lwuit.Dialog ) for showing dialog window when key pressing. So in my program I just included that package and create the object of the Dialog box. While running my application, it is terminated unexpectedly. I just included the following lines... import javax.microedition.lcdui.Canvas; import com.sun.lwuit.Dialog; public

Is this possible to use lwuit.Dialog with javax.microedition.lcdui.Canvas in wireless toolkit 2.5.2?

两盒软妹~` 提交于 2019-12-02 03:03:41
I am using javax.microedition.lcdui.Canvas for drawing my string on the screen. But I also need one dialog window for some purpose. So I am using lwuit package ( com.sun.lwuit.Dialog ) for showing dialog window when key pressing. So in my program I just included that package and create the object of the Dialog box. While running my application, it is terminated unexpectedly. I just included the following lines... import javax.microedition.lcdui.Canvas; import com.sun.lwuit.Dialog; public class Mycanvas extends Canvas implements CommandListener { Dialog dialog = new Dialog(); //some other