wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes How to a frame with no ability to resize the content pane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to a frame with no ability to resize the content pane" Watch "How to a frame with no ability to resize the content pane" New topic
Author

How to a frame with no ability to resize the content pane

Lee Chalupa
Greenhorn

Joined: Dec 11, 2002
Posts: 10
Magic Draw the uml java tool has a main frame which consists of a menu bar and tool bars. There are no panels or container in the content pane. In addition, the content pane cannot be resized. if you attempt to drag the bottom edge of the frame down the page, when you release it, the panel snaps back like a window shade to it's original position. At the same time the frame can be resized horizontally by dragging the sides of the frame left or right.
How are they doing this?
The answer is not using the SetResizable method. It restricts both horizontal and vertical resizing and you are not able to get a handle on the edge of the frame to drag it in either direction.
Any ideas how they are doing this?
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

I've done this before by attaching a ComponentListener to the Frame and resizing it back to it's previous size in the componentResized() method.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to a frame with no ability to resize the content pane
 
Similar Threads
Problem in setting the background of a frame
JSplitPanes not resizing when JFrame maximized
Can't clear glassPane
can't see the background color of a frame , why?
JFrames and JPanel