6
7

More than 5 years have passed since last update.

JavaFXでウィンドウ最大化

Last updated at Posted at 2015-09-03

ウィンドウを最大化したい場合、
StageクラスのsetMaximizedメソッドを使用する。

Hoge.java
public class Hoge extends Application{
    public static void main(String[] args){
        Application.launch(args);
    }

    @Override
    public void start(Stage stage) throws Exception {
        //Stage
        stage.setScene(new Scene(new AnchorPane(), 700, 500));
        stage.setMaximized(true);

        stage.show();
    }
}
6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7