[英]IntelliJ GUI Designer component properties to bound class?
Is there a way to generate a code from the component's properties in the GUI designer to the bound class?有没有办法从 GUI 设计器中的组件属性生成代码到绑定的 class?
Let's say I modified the margins of JPanel
, I wanted it to generate that line of code in the bound class.假设我修改了
JPanel
的边距,我希望它在绑定的 class 中生成该行代码。
Settings (Preferences on macOS) |设置(macOS 上的首选项)| Editor |
编辑| GUI Designer |
界面设计师 | Generate GUI into: Java source code .
生成GUI为: Java源代码。
Rebuild the project, all the custom properties you set will appear in the bound.java file.重建工程,你设置的所有自定义属性都会出现在绑定的.java文件中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.