How to Resize Dialog Box in LWUIT?

2019-08-08 16:34发布

问题:

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);