Hello all, i'm trying to run simple game from my own non-static class, but the window (which asks for the resolution, full screen etc) appears and freezes doesn't show buttons. i think it is about thread problem? how can i solve this?
public void myFrame(){
String[] s=new String[1];
s[0]="hello";
X.main(s);
}
public class X extends SimpleGame{
public static void main(String[] args) {
X app=new X();
app.setDialogBehaviour(AbstractGame.ALWAYS_SHOW_PROPS_DIALOG);
app.start();
}
protected void simpleInitGame() {..}
protected void simpleUpdate() {..}
}