我有一个代码,它只是创建一个带有一些复选框和组合框的屏幕。奇怪的是,当我运行应用程序时,我的预览看起来与真实屏幕完全不同。真实屏幕显示较小的文本字段和组合框。如何在真实屏幕上获得预览外观?
如下图所示,第一个日期组合框比下面的要小得多。
我有一个代码,它只是创建一个带有一些复选框和组合框的屏幕。奇怪的是,当我运行应用程序时,我的预览看起来与真实屏幕完全不同。真实屏幕显示较小的文本字段和组合框。如何在真实屏幕上获得预览外观?
如下图所示,第一个日期组合框比下面的要小得多。
Looks like it could be a Look and Feel change. I believe by default Netbeans uses Nimbus. When in the GUI Builder, along the top next to the run button you should see a drop-down menu. From there, you can select the default look and feel. You would probably have to change your look and feel for your program, if it already isn't implemented in the code.