|
-
Aug 7th, 2001, 12:38 AM
#1
Thread Starter
Hyperactive Member
JFrame problem
How to hide or disabling the Close Button of Jframe in java
Please help me
-
Aug 10th, 2001, 01:38 AM
#2
Junior Member
how to hide close button
I do not think that you can(maybe) but you could use a window and then implement other stuff such as dragging etc.
Why did I ever start learning VB?! I should have been happy with Java. 
-
Aug 10th, 2001, 07:41 AM
#3
Dazed Member
Ill have to second that. I didnt see any options to disable or hide the window closing button on a JFrame. JFrame only has two constructors . One empty and one that takes a string.
-
Aug 13th, 2001, 01:32 PM
#4
Check out JFrame's
public void setDefaultCloseOperation(int operation)
To make the JFrame behave the same as a Frame instance, use setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE).
This is the "disable the button" solution, but not the "remove the button" solution.
As they suggested, you could extend Window and define your own bahavior. Heck, you might even extend JFrame and define your own behavior and look.
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
|