简体   繁体   English

预览与实际屏幕不同

[英]Preview differs from actual screen

I have a code that simply creates a screen with some checkboxes and comboboxes. 我有一个代码,该代码只是创建带有一些复选框和组合框的屏幕。 The weird thing is that my preview looks totally different than the real screen when I run the app. 奇怪的是,当我运行该应用程序时,我的预览看起来与实际屏幕完全不同。 The real screen shows littler textfields and comboboxes. 实际屏幕显示的文本框和组合框更少。 How do I get the preview-looks on the real screen? 如何在真实屏幕上获得预览外观?

As you can see at the picture below, the first date-comboboxes are way smaller than the ones below. 如下图所示,第一个日期组合框比下面的小。

屏幕提示

Looks like it could be a Look and Feel change. 看起来可能是外观上的变化。 I believe by default Netbeans uses Nimbus. 我相信Netbeans默认使用Nimbus。 When in the GUI Builder, along the top next to the run button you should see a drop-down menu. 在GUI Builder中,在运行按钮旁边的顶部,您应该会看到一个下拉菜单。 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. 如果您的程序尚未在代码中实现,则可能必须更改其外观。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM