Java JFrame Size according to screen resolution

后端 未结 7 1823
[愿得一人]
[愿得一人] 2020-12-09 17:48

I created java GUI using myEclipse Matisse. when my Screen Resolution is 1024x768 it works fine but when i change resolution my GUI is not working fine. I want my GUI window

7条回答
  •  無奈伤痛
    2020-12-09 18:27

    You can try using this to maximize the frame:

    this.setExtendedState(JFrame.MAXIMIZED_BOTH);
    

提交回复
热议问题