【瀏覽器&exe桌面應用】用javafx webview 打造自己的瀏覽器-全屏自適應屏幕

接着上一篇

全屏

    Scene scene = new Scene(new Group());
    stage.setMaximized(true);

自適應屏幕

   ScrollPane scrollPane = new ScrollPane();
        scrollPane.setFitToHeight(true);
        scrollPane.setFitToWidth(true);
        scrollPane.setContent(browser);

圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章