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