Why does the JFrame setSize() method not set the size correctly?
问题 So I've been programming in java for a semester or so, and I've had this problem a few times and finally got around to asking. If I make a JFrame and then set the size, like setSize(400,800) for example. The frame is not actually 800 pixels long. From what I can tell it is actually more like 770 (or maybe 769) pixels long. Also, if you set the vertical size very low (below 30), the frame doesn't even show up, only the top window bar from the OS and the frame doesn't get bigger until you go to