I have two classes : One is called "Game" and it extends Application. Running this will launch the video game I've created. The other is called LocalClient, it also extends Application. Running this will give me a Menu, giving me the option to open the game by the press of a button. The problem is that I don't want to open the game, I just want to render both Applications in the same Frame
public class LocalClient extends Application {
Pane root;
@Override
public void start(Stage primaryStage) throws Exception {
// my start method for LocalClient
}
private class GameMenu extends Parent {
// this is another class where i have my buttons and the different menus/submenus
}
public class Game extends Application {
private Pane root = new Pane();
private Level level; // level is an abstract class I use
/**
* Stars the game and begins rendering
* @param stage stage to render all objects to
*/
@Override
public void start(Stage stage) {
// my Start mmethod for the game