Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用 UI 设计器定义了一个对话框。我现在如何在代码中显示它?
就像您可以通过命令导航到 GUI 构建器中的对话框或通过showForm("dialogName", null);
showForm("dialogName", null);
你也可以使用
Dialog dlg = (Dialog)createContainer(fetchResourceFile(), "dialogName");
然后你可以只使用show()方法,显示打包的、无模块的或任何其他实例级别(非静态)的显示方法。
show()