I have written a program that does everything I want it to do except that the GUI won't show up until I resize the window in some way. I have no idea how to get it to just show up on open. It's been driving me nuts. Is there a command that I can just put in at the end of my code to make it refresh or make it show up somehow? It is basically one JPannel with two more JPannels on top of that that comprise the main GUI. Thanks for any help.
As a temporary solution you may try to add a function to the onload event of <body> which maximizes the window, this way refreshing it. But I have no idea about the real problem...
Yah, my TA said it would be ok as long as the code looked alright so I guess I'm going to stop worrying about it. Thanks for your help.
I've solved my own problem. I put some commands such as Jframe.setVisible() or something like that in the object itself rather than in the main method where they belonged.
The correct solution regard to MVC - Model View Control. Make you familiar with ít. You don't have to update the graphics on your own, only update the model, and the view, which is watching the model updates itself!