Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,008 members, 7,817,974 topics. Date: Sunday, 05 May 2024 at 12:53 AM

Make Your Jframe Irresizable - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Make Your Jframe Irresizable (941 Views)

Continuation Of The GUI Jframe Java Program / How To Create A Small Gui(graphical User Interface) Using Jframe In Java Program / Help Me With Code To Disable The Maximize Button On My Jframe (java). (2) (3) (4)

(1) (Reply)

Make Your Jframe Irresizable by SayoMarvel(m): 12:53pm On Dec 11, 2007
The code to make it impossible to resize your JFrame is:

JFrame frame = new JFrame("Frame Title"wink;
frame.setResizable(false);

I searched for it on google.

Note: The above snipet hides the maximize and minimize buttons of the frame.
I need something that makes them visible but still deactivates the miximize button.
Re: Make Your Jframe Irresizable by SayoMarvel(m): 5:23pm On Dec 27, 2007
i've discovered that it is on jdk 1.2 that the buttons get hidden. try jdk 1.5. its cool. only the maximize button gets deactivated (not hidden).

(1) (Reply)

Help Abap/sap Trianing In India / Swalli Whot Game Crashes Phone / modified post no longer working@

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.