Results 1 to 3 of 3
Thread: Splashscreen returns null
- 03-03-2011, 06:03 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 5
- Rep Power
- 0
Splashscreen returns null
Hi
I'm trying to make a SplashScreen, I read there is a SplashScreen() class.
I made this:
Java Code:package GUI; import java.awt.*; import java.io.IOException; /** * Created by IntelliJ IDEA. * Date: 3/03/11 * Time: 13:54 */ public class Splash { final SplashScreen scherm = SplashScreen.getSplashScreen(); public Splash() { if(scherm == null){ System.out.println("returns null"); } try { scherm.setImageURL(this.getClass().getResource("splashscreen.png")); } catch (IOException e) { e.printStackTrace(); } scherm.update(); scherm.isVisible(); } public static void main(String[] args) { new Splash(); new MenuUI("Game"); } }
Thanks in advance
- 03-03-2011, 06:59 PM #2
When/how are you setting the SplashScreen? It doesn't just work automatically. Consult the API.
How to Ask Questions the Smart Way
Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
Static Void Games forum - Come say hello!
- 03-04-2011, 02:25 PM #3
Member
- Join Date
- Feb 2011
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
getImplementationVersion() returns null
By newbiejava in forum New To JavaReplies: 22Last Post: 09-12-2010, 10:31 AM -
Lucene highlighter returns null fragments always
By zee in forum LuceneReplies: 1Last Post: 08-20-2010, 12:30 PM -
helpset findHelpSet returns null
By kmm1977 in forum AWT / SwingReplies: 23Last Post: 06-22-2010, 04:53 PM -
SplashScreen.getSplashScreen() returned null
By kmm1977 in forum AWT / SwingReplies: 4Last Post: 06-21-2010, 12:04 PM -
SplashScreen.getSplashScreen() returned null
By ibrahimyoussof in forum AWT / SwingReplies: 2Last Post: 04-17-2010, 03:51 PM
Bookmarks