简体   繁体   English

NetBeans 8.2打开GUI窗口及其组件非常小(Win 10,Surface Pro 3)

[英]NetBeans 8.2 Opens GUI windows and its components really tiny (Win 10, Surface Pro 3)

I am building some Swing Application in NetBeans, using the GUI it offers to do so. 我正在使用NetBeans提供的GUI在NetBeans中构建一些Swing应用程序。 When I run the application it opens the window really really small, and its very hard to use because of that. 当我运行应用程序时,它打开的窗口很小,因此很难使用。 I just fixed the NetBeans issue of all of its text and components being very small by setting -J-Dsun.java2d.dpiaware=false . 我只是通过设置-J-Dsun.java2d.dpiaware=false解决了NetBeans所有文本和组件很小的问题。 But this only made the change to NetBeans, not the applications that it opens. 但这仅更改了NetBeans,而不更改了它打开的应用程序。 Any idea how I can fix this? 知道我该如何解决吗? In the picture below, you can see NetBeans in the back and the size I work on, compared to the window that was opened when I ran the application. 在下面的图片中,与运行应用程序时打开的窗口相比,您可以看到NetBeans的背面以及我使用的大小。 (In the picture below, the size of the window that was opened, was the old size of the components in NetBeans before setting dpiaware to false) (在下面的图片中,打开的窗口的大小是将dpiaware设置为false之前NetBeans中组件的旧大小)

Screen shot of my tiny window : 我的小窗口的屏幕截图:

https://i.stack.imgur.com/8sz3C.jpg

From DevilsHnd's Comment, I went to look at my resolution and I noticed some text on that page in the Scale and Layout sections that said "Some apps will not scale properly until you logout". 从DevilsHnd的评论中,我去看了我的分辨率,并且在“缩放”和“布局”部分的页面上注意到一些文字,上面写着“某些应用程序直到您注销才能正确缩放”。 Computer Display Settings page 计算机显示设置页面

Which was weird because I turn off by surface when ever I stop using it, and I turn it on and log in when ever I get back on. 这很奇怪,因为在我停止使用它时会关闭它的表面,然后在我再次使用它时将其打开并登录。 But, I clicked that link to log out, and when I logged back in the app window was the correct size =). 但是,我单击了该链接以注销,当我重新登录应用程序窗口时,大小正确=)。 Yay dumb luck!!! 是的,愚蠢的运气! App window showing as the correct size. 应用窗口显示为正确的大小。

Note: I use 3 monitors at home, this issue might have been caused because of something to do with that. 注意:我在家中使用3台显示器,可能是由于与此有关而导致的。

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

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