本文整理匯總了Java中javafx.stage.StageStyle.UNDECORATED屬性的典型用法代碼示例。如果您正苦於以下問題:Java StageStyle.UNDECORATED屬性的具體用法?Java StageStyle.UNDECORATED怎麽用?Java StageStyle.UNDECORATED使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類javafx.stage.StageStyle
的用法示例。
在下文中一共展示了StageStyle.UNDECORATED屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: SettingsWindow
public SettingsWindow(Stage parent) throws IOException {
super(StageStyle.UNDECORATED);
prefs = Preferences.userNodeForPackage(App.class);
// Load root layout from fxml file.
FXMLLoader loader = new FXMLLoader(getClass().getResource("fxml/settings_menu.fxml"));
loader.setController(this);
this.initModality(Modality.WINDOW_MODAL);
this.initOwner(parent);
this.setAlwaysOnTop(true);
TabPane layout = loader.load();
Scene scene2 = new Scene(layout);
this.setScene(scene2);
this.setTitle("LMSGrabber Settings");
min_delay_slider.setValue(prefs.getDouble("min_delay", 1.0));
max_delay_slider.setValue(prefs.getDouble("max_delay", 3.0));
input_proxy.setText(prefs.get("proxy", ""));
multithreaded_check.setSelected(prefs.getBoolean("multithreaded", true));
}
示例2: initStage
private void initStage() {
stage = new CustomStage(rootNode, StageStyle.UNDECORATED);
stage.setScene(new Scene(rootNode));
stage.setAlwaysOnTop(true);
stage.setLocation(stage.getBottomRight());
lblClose.setOnMouseClicked(e -> dismiss());
}
示例3: getPreferredStageStyle
@Override
public StageStyle getPreferredStageStyle() {
return StageStyle.UNDECORATED;
}