JFrame.setResizable(true) lets the user resize both the width and height of a window. Does a method exist which allows the user to ONLY resize the height?
JFrame.setResizable(true)
To avoid flickering, you can override #setBounds method in your JFrame. Seems like every resize will call it. Something like
@Override public void setBounds(int x, int y, int width, int height) { if (width == FIXED_WIDTH) { super.setBounds(x, y, width, height); } }
did the trick for me.