Hide/remove maximize button on JFrame.
Posted on 2003-11-18
I have a JFrame which I wish to remove or completely hide the Maximize button (on top right hand corner) yet leave the Minimize and Close buttons still showing.
I've tried a few things such as setting resizable to false ( frame.setResizable(false); ) but that just seems to disable the button not hide it completely.
I have also tried using a JDialog instead of a JFrame but that seems to just show the close button, not the minimize.
Points to anyone who can show me the code to achieve what i want.