Created
December 29, 2013 09:43
-
-
Save KingC100/8168927 to your computer and use it in GitHub Desktop.
アイコン、タイトル、ウィンドウサイズ固定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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