Make Your Jframe Irresizable

A Member? Please Login  
type your username and password to login
Date: November 19, 2008, 10:26 AM
262579 members and 159899 Topics
Latest Member: Shakor49
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming (Moderator: Dual Core)  |  Make Your Jframe Irresizable
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Make Your Jframe Irresizable  (Read 145 views)
SayoMarvel (m)
Make Your Jframe Irresizable
« on: December 11, 2007, 12:53 PM »

The code to make it impossible to resize your JFrame is:

JFrame frame = new JFrame("Frame Title");
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.
SayoMarvel (m)
Re: Make Your Jframe Irresizable
« #1 on: December 27, 2007, 05:23 PM »

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).
 Any Book On Opengl And Directx, Please?  Webmasters Submit Tenders For This Job Now!  Someone Help Me With This.  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Job Talk Jobs/Vacancies (2) Career Talk Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.