Lwuit 非静态对话框有问题吗?

发布于 2024-11-26 10:37:03 字数 444 浏览 2 评论 0原文

当我使用

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

2024-12-03 10:37:03

您的问题不清楚,您的意思是 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文