I have a JFrame and want to remove the maximize button from that.
I wrote the code below, but it removed maximize, minimize, and close from my JFrame.
JFrame
JFrame frame = new JFrame(); frame.add(kart); frame.setUndecorated(true); frame.setVisible(true); frame.setSize(400, 400);
I want to only remove the maximize button from the JFrame.
Make it not resizable:
frame.setResizable(false);
You will still have the minimize and close buttons.
1.4m articles
1.4m replys
5 comments
57.0k users