简体   繁体   中英

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

this problem was under netbeans itself but i fix it using netbeans-ide-scaling-on-windows-8-10

when i tried to test it under swing this problem appear again.

setSize and setFont(new Font(MAX_FONT_SIZE)) are not what i'm looking for.

my working environment is:

  • windows 10 home
  • netbeans v8.0.2

May be you are not preparing the dimension on jframe. Go to the design panel and click jframe. set the preferredSize, width, height to change the size of jframe on properties window. I think that it will be work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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