Java setResizable(false) changes the window size (swing)

前端 未结 7 750
情深已故
情深已故 2020-12-09 17:45

I have a strange problem. I am using the null layout for a window (= JFrame and on windows) and if I use setResizable (false) the window size gets bigger (to right and botto

相关标签:
7条回答
  • 2020-12-09 18:31

    If you set setResizable false before setting the bounds, you will not have the problem. as Gergely Szilagyi stated before, you are getting rid of the scrollbars, but the size of the window is locked and therefore you end up with 9 or 10 pixels of extra space in the frame. I just had the same problem. thanks for the help.

    0 讨论(0)
提交回复
热议问题