Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 compiling question
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Bo0sT




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
andrew.




PostPosted: Thu May 07, 2009 7:11 pm   Post subject: RE:compiling question

Maybe you have to setVisible?
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: