|
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
|