Computer Science Canada compiling question |
Author: | Bo0sT [ Thu May 07, 2009 5:06 pm ] |
Post subject: | compiling question |
I'm working on this project, a javax.swing app and I set it up the way I like and everything works. When I compile and run the project though, sometimes nothing shows up, I get a blank JFrame (my program is a subclass of JFrame and calls its own constructor in the main method). Then when I recompile and run it again, the same thing happends, empty JFrame, none of my components show up. Then I do this again and again and again, sometimes only my menu bar shows up, but after about 5 or 6 times, everything shows up like it's suppose to and everything works. I'v tried my program in 2 diffrent enviroments and it's the same in both. Has anyone else had this problem before, I don't mind it but I would like to know why. Thanks. |
Author: | andrew. [ Thu May 07, 2009 7:11 pm ] |
Post subject: | RE:compiling question |
Maybe you have to setVisible? |