A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
how to make a frame unexpandable?
Joined: Jul 20, 2001
Oct 21, 2001 15:12:00
I want to display a frame on the screen. And I wish the size of the frame can not be changed by the user. How to do it?
Joined: Sep 22, 2001
Oct 21, 2001 15:54:00
use setResizable(false) method of frame.
From JDK API -
<font size="+0"> setResizable public void setResizable(boolean resizable) Sets whether this frame is resizable by the user. Parameters: resizable - true if this frame is resizable; false otherwise.
[This message has been edited by Manish Hatwalne (edited October 21, 2001).]
I agree. Here's the link:
subject: how to make a frame unexpandable?
Frames in HTML
Image in JFrame ???
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015