This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello All, I have this snipplet of code that when I run it without the thread I get my picture up fine also when I run it without the method (CongratulationFrame.dispose() I get the image on the frame fine(but it does not close). I don't know if I am doing anything wrong here, but if I am could you please help me, with getting this thread right. Thankyou you lot. Ben
(Edited post due to long code lines widening page - NEP) [ February 18, 2004: Message edited by: Nathan Pruett ]
How are you calling the thread that pops up this frame? Is it through a new thread, SwingUtilities, Timers, etc?
How big is the image that you are loading? You may want to load the image outside of this code and save it somewhere as an Image object... this might be an issue of you not giving enough time for the image to load from the file.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Joined: Nov 08, 2002
Hello Nathan, I have got a splash screen (thread) at the beggining of my code and it works fine, now I have done the design the same way, like this. there is no problem with the size of the picture as i'm using the same pic, and the class is designed the same way, so there should be no problem there to. I do not know what i'm doing wrong. Thanks Ben
and this is the class where the GUI is designed
(Edited post due to long code lines widening page - NEP) [ February 19, 2004: Message edited by: Nathan Pruett ]