Results 1 to 1 of 1
- 02-01-2011, 03:39 PM #1
Member
- Join Date
- Aug 2010
- Posts
- 29
- Rep Power
- 0
Disable Maximize button in JFrame?
Hi,
i was working on an application today which basically dealt with jframe class,now the situation is that i want the frame to load in its maximized form(both vertically and horizontally) whenever the application is run,BUT i want to disable the MAXIMIZE button,so that the user is not privileged to resize/playaround with the frame size.
Here's my code:
class CallMe extends JFrame
{
public CallMe()
{
initUI();
}
public void initUI()
{
setSize(400,300);
setLocation(500,200);
setTitle("Example");
setExtendedState(MAXIMIZED_BOTH);
setResizable(false);
}
}
.............
..............
..............
Output of the above code:
The frame is not completely maximized,But the maximize button is disabled! :) :)
Kind Regards,
Manish87
Similar Threads
-
Disable Radio button
By AJG in forum New To JavaReplies: 3Last Post: 05-10-2011, 11:09 AM -
how to disable minimize and maximize button in jframe window
By santhosh_el in forum AWT / SwingReplies: 6Last Post: 11-22-2010, 11:55 AM -
disable a java.awt.Button but not greying it out
By alinaqvi90 in forum AWT / SwingReplies: 4Last Post: 10-18-2010, 01:08 PM -
Disable Save button - Acrobar Reader
By Deepa in forum New To JavaReplies: 1Last Post: 03-06-2009, 12:15 PM -
Disable the WebBrowser Back button
By Deepa in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 11-26-2008, 09:10 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks