java - JFrame window doesn't show up? -
i'm building space invader style game in java. first do, i'm trying make sense of it. main requirement runs on desktop. now i'm trying use jframe this, isn't letting me want do. when run app, show java "app" running in dock (i run osx), actual jframe window doesn't show up. this how create window: public gildeinvaders() { add(new panel()); settitle("gilde opleidingen space invaders"); setdefaultcloseoperation(exit_on_close); setsize(500, 500); //setsize(gildeinvaders.getconfiguration().getint("game.width"), gildeinvaders.getconfiguration().getint("game.height")); setlocationrelativeto(null); setvisible(true); setresizable(true); } public static void main(final string[] args) throws ioexception { new gildeinvaders(); } the panel i'm initiating instance of jpanel, think right approach: public class panel extends jpanel implements runnable { // lot of variables her...