【发布时间】:2016-06-08 13:08:00
【问题描述】:
我开发了一个跨平台应用程序,其中包括一个 javafx.stage.Popup 对象,上面有 javafx.scene.control.ProgressIndicator。它在 Windows 上显示,但在 Ubuntu 中没有(仅显示百分比),有没有人遇到过这样的问题
【问题讨论】:
-
请提供simple example 证明问题。
-
popup = new Popup(); popup.setWidth(ConfigClass.POPUP_WIDTH); popup.setHeight(ConfigClass.POPUP_HEIGHT); popUpHBox = new AnchorPane(); popUpHBox.setPrefWidth(ConfigClass.SCREENSHOT_POPUP_WIDTH); popUpHBox.setPrefHeight(ConfigClass.SCREENSHOT_POPUP_HEIGHT); timer = new ProgressIndicator(timer_progress); timer.setPrefWidth(105); timer.setPrefHeight(88); timer.setLayoutX(105); timer.setLayoutY(56); popUpHBox.getChildren().addAll(timer); popup.getContent().addAll(popUpHBox); popup.show(ViewClass.getStage()); popup.setAutoHide(false); popup.setAutoFix(true);
标签: linux javafx-8 ubuntu-15.04 progress-indicator