Skip to content

Instantly share code, notes, and snippets.

@KingC100
Created December 29, 2013 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KingC100/8168927 to your computer and use it in GitHub Desktop.
Save KingC100/8168927 to your computer and use it in GitHub Desktop.
アイコン、タイトル、ウィンドウサイズ固定
public class FXErycton extends Application {
@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("FXErycton.fxml"));
// 背景色
root.setStyle("-fx-background-color: #E9967A;");
Scene scene = new Scene(root);
// アイコンセット
ReadContents rc = new ReadContents();
stage.getIcons().add(new Image((getClass().getResource("FXErycton.ico").toString())));
// タイトルセット
stage.setTitle("FXErcycton v0.0.1");
// ウィンドウサイズ固定
stage.setResizable(false);
stage.setScene(scene);
stage.show();
// 標準でシングルバトル仕様
RoofBean.setBattleType("single");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment