如何在LWUIT中调整对话框大小? [英] How to Resize Dialog Box in LWUIT?
本文介绍了如何在LWUIT中调整对话框大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经使用Lwuit,Midlet创建了一个程序.在该程序中,当我按下移动键时,我将在屏幕上显示对话框(LWUIT组件).它显示默认大小.但我想调整它的大小.
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.
如何在 LWUIT 中调整对话框的大小?
How can I resize the Dialog Box in LWUIT?
推荐答案
Use this Dialog#Show method for showing resized Dialog. For example,
Dialog dialog = new Dialog("Information");
dialog.show(0, 100, 11, 11, true);
这篇关于如何在LWUIT中调整对话框大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文