Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ezhov-da/c45848a3bada45eed6e0202edb39c29e to your computer and use it in GitHub Desktop.
Save ezhov-da/c45848a3bada45eed6e0202edb39c29e to your computer and use it in GitHub Desktop.
java fxframe вставляем форму в приложение
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
import java.util.logging.Logger;
public class $NAME_CLASS extends Application {
private static final Logger LOG = Logger.getLogger(TestFrame.class.getName());
@Override
public void start(Stage primaryStage) throws Exception {
BorderPane borderPane = new BorderPane();
Scene scene = new Scene(borderPane);
primaryStage.setScene(scene);
primaryStage.setWidth(1000);
primaryStage.setHeight(600);
primaryStage.show();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment