|
-
Sep 29th, 2001, 11:33 AM
#1
Thread Starter
Dazed Member
Resizing JFrame? [resolved]
Anyway i can stop a user from resizing a JFrame? Im digging through my books but i cant find squat. I dont see anything under the JFrame class or the Window class that would stop the user from resizing a Frame.
Last edited by Dilenger4; Oct 1st, 2001 at 03:13 PM.
-
Sep 29th, 2001, 11:36 AM
#2
Thread Starter
Dazed Member
I know the constants in the Windows interface that JFrame JDialog and JInternalFrame implement so please dont mention
DISPOSE_ON_CLOSE
DO_NOTHING_ON_CLOSE
HIDE_ON_CLOSE
-
Sep 29th, 2001, 11:37 AM
#3
Member
Re: Resizing JFrame?
Originally posted by Dilenger4
Anyway i can stop a user from resizing a JFrame? Im digging through my books but i cant find squat. I dont see anything under the JFrame class or the Window class that would stop the user from resizing a Frame.
In JBuilder when I was messing around with my main JFrame there was a property called "sizable" or something like that.
-
Sep 29th, 2001, 11:46 AM
#4
Thread Starter
Dazed Member
Hummmmmmm. Ok cool. Ill search for it.
Thanks. Filbert
-
Sep 29th, 2001, 11:52 AM
#5
Thread Starter
Dazed Member
I have a pretty good idea that the property you are talking about
is defined in the java.awt.Frame class which javax.swing.JFrame
extends. Unfortunatly i dont have a awt book so ill have to make a little trip to the good old sun docs.
-
Sep 29th, 2001, 12:06 PM
#6
Thread Starter
Dazed Member
I found it under the java.awt.Frame class as setResizable(boolean resizable); but when i try to compile it produces an error. It says that setResizable in Java.awt.Frame cannot be applied to (java.lang.String) which make no sense becuase that is what it's asking for.
Code:
GUI.setResizable("false");
-
Sep 29th, 2001, 12:14 PM
#7
Member
That would make no sense; try passing it a boolean.
-
Sep 29th, 2001, 12:18 PM
#8
Thread Starter
Dazed Member
I know it makes no sense. Just for the **** of it i tried the
boolean isResizeble() which is also inherited from java.awt.Frame and it works fine.
[code]
boolean is = GUI.isResizable();
System.out.println(is);
[code]
-
Sep 29th, 2001, 12:20 PM
#9
Member
Maybe they just never re-javadoc'ed the class. *shrug*
-
Sep 29th, 2001, 12:20 PM
#10
Thread Starter
Dazed Member
I got it to work. Thanks. I just passed it a non-String false.
-
Sep 29th, 2001, 12:31 PM
#11
Member
Originally posted by filburt1
That would make no sense; try passing it a boolean.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|