Thread: Resize frame
View Single Post
  #1 (permalink)  
Old 07-24-2007, 05:15 PM
lenny lenny is offline
Member
 
Join Date: Jul 2007
Posts: 40
lenny is on a distinguished road
Resize frame
Hi, For a program we have to have a frame, with a JComponent inside it, and then a few objects drawn on it. All of which is no problem but the last thing that is needed, is when the entire frame is resized, all of the pieces inside it need to stretch out as well.
This is where my problem is, I think it is because the paintComponent method needs to be called again when the frame is resized but I do not know how to do that.
All of my drawing statements use variables as opposed to set sizes, so it should all work if I could update it after the frame is resized.
Thanks
Reply With Quote
Sponsored Links