JFrame.setResizable(false) allows me to create a JFrame the user cannot resize. But I need a JFrame that the user can widen or narrow, while keeping a fixed height. Scouring the Web produced numerous variations on the following:
However, if this ever worked, it does not work under
Java SE8 and Windows 10. Dragging the bottom edge of the JFrame's window up and down shows it snapping back into place (most of the time), but the final height is left where the edge was when I released the mouse button. In fact, no "mouse released" event is received by the JFrame, which suggests to me that either Windows gets the event and Java doesn't, or Java gets it but it isn't sent to the JFrame.
Anyone have a way to let the user change the width, but not the height, of a JFrame?