Lwuit 非静态对话框有问题吗?
当我使用
Dialog form = new Dialog("Login");
Label userL = new Label("Username");
Label passL = new Label("Password");
TextField user = new TextField();
TextField pass = new TextField();
Container c = new Container();
c.addComponent (userL);
c.addComponent (user);
c.addComponent (passL);
c.addComponent (pass);
form.addComponent (c);
form.showDialog();
容器时,容器出现在对话框中,但不在对话框体内......
任何人都可以帮助我吗???
When I use
Dialog form = new Dialog("Login");
Label userL = new Label("Username");
Label passL = new Label("Password");
TextField user = new TextField();
TextField pass = new TextField();
Container c = new Container();
c.addComponent (userL);
c.addComponent (user);
c.addComponent (passL);
c.addComponent (pass);
form.addComponent (c);
form.showDialog();
The container is coming in dialog but not inside dialog body....
Can anyone help me????
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的问题不清楚,您的意思是
DialogBody
样式不适用吗?DialogBody 样式仅在静态对话框方法中手动应用。您应该使用 c.setUIID("DialogBody");
或者,您可能指的是当前 SVN 中对对话框行为方式所做的更改,该更改改变了对话框样式的行为方式。您可以在这篇文章中了解有关此更改的更多信息: http://lwuit.blogspot.com/2010/10/tips-about-compatibility-issues-with-my.html
Your question is unclear do you mean the
DialogBody
style doesn't apply?The DialogBody style is only applied manually in the static dialog methods. You should use
c.setUIID("DialogBody");
Alternatively you might be referring to a change that was done in the current SVN to the way dialogs behave which changed the way dialog styles act. You can learn more about that change in this post: http://lwuit.blogspot.com/2010/10/tips-about-compatibility-issues-with-my.html