简体   繁体   English

netbeans的摆动输出很小

[英]swing output is to small in netbeans

look at the image and you will understand what my problem 看看图像,你会明白我的问题 在此输入图像描述

that's happened in this computer which is 4k UHD 发生在这台4k UHD的电脑上

this problem was under netbeans itself but i fix it using netbeans-ide-scaling-on-windows-8-10 这个问题是在netbeans本身下,但我使用netbeans-ide-scaling-on-windows-8-10修复它

when i tried to test it under swing this problem appear again. 当我试图在swing下测试它时,这个问题又出现了。

setSize and setFont(new Font(MAX_FONT_SIZE)) are not what i'm looking for. setSizesetFont(new Font(MAX_FONT_SIZE))不是我想要的。

my working environment is: 我的工作环境是:

  • windows 10 home windows 10回家
  • netbeans v8.0.2 netbeans v8.0.2

May be you are not preparing the dimension on jframe. 可能是你没有在jframe上准备维度。 Go to the design panel and click jframe. 转到设计面板,然后单击jframe。 set the preferredSize, width, height to change the size of jframe on properties window. 设置preferredSize,width,height以更改属性窗口上jframe的大小。 I think that it will be work. 我认为这将是有效的。

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

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