Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing a Panel Within a Frame

Status
Not open for further replies.

BoulderBum

Programmer
Jul 11, 2002
2,179
US
Are there built-in properties or objects that would allow a panel within a frame to be resized by dragging its edge? I'd rather not reinvent the wheel if such capabilities exist.
 
such capabilities don't exist. but if you do feal you have to re-invent the wheel, perhaps jinternalframe might be a better starting point than jframe (not that you said you were using jframe, i just assumed). it has the functionality you need, you just need to override paintcomponent and make it look lke the frame you want to see.
 
Thanks for the response.

I actually have an MDI (using JInternalFrames) with the panel I want to resize in the South of the parent JFrame's BorderLayout. I have buttons to resize the panel currently, and I guess I'll just be lazy and stick with them for the moment.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top