This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Frame events Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Frame events" Watch "Frame events" New topic

Frame events

Anirban dutta
Ranch Hand

Joined: Aug 08, 2002
Posts: 89
hi all,
Please anybody can tell me how I can trap the resizing of a frame(increasing it's width by dragging and stretching the frame by mouse). I want that the frame should not be resized beyond a specific size. Also how to trap the movement of a frame on the screen.
kim jungil

Joined: Sep 27, 2001
Posts: 27
u can add ComponentListener in the frame, it can receive component events from current component.
And u can use setResizable(boolean resizable).resizable - true if this frame is resizable; false otherwise.
Don't get me started about those stupid light bulbs.
subject: Frame events
Similar Threads
Trap Network Errors in Web Service
Drop down event in JComboBox
Trap system signals
Application Close Event
Trapping mouse movement