File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Frame resizing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Frame resizing" Watch "Frame resizing" New topic

Frame resizing

Gokula krishnan

Joined: Aug 05, 2005
Posts: 12

i developed a chatting application..

i want to know three things in the Frame Resizing.

1. i tried to restrict the user cann't resize the frame less than (300,600) by setPreferedSize(). it works. but the user can resize upto 0,0 .. when the user leave the mouse button for resize, then it comes to the preferedsize. i want to restrict the user cannot resize less than 300,600. How to do..?

2. when the user minimize or maximize the frame size, after leave the mouse button for minisize/maximize, it draws the frame based for frame size.. i need to draw same time when i resize the frame. how to do?

3. when the frame is in resized size, i want to show to the dots (like triangle)in the right-bottom corner of the status bar to indicate the user can maximize or resize the frame. how to do..?

if any one come to know this, pls tell me..

todd runstein
Ranch Hand

Joined: Feb 15, 2005
Posts: 64
Sounds like you need to add your own ComponentListener, adding the functionality you want to the componentResized method.
I agree. Here's the link:
subject: Frame resizing
jQuery in Action, 3rd edition