JDK-8094091 : ProgressIndicator displays unwanted opaque background and border
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8u40
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2014-09-23
  • Updated: 2015-06-12
  • Resolved: 2014-09-23
Related Reports
Duplicate :  
Description
While playing with the ea of 8u40 I have noticed a change in ProgressIndicator. With 8u20 the background of the indicator would be transparent and did not have a border by default. This has changed in 8u40. Is this intentional?

(I would love to place screen shot of 8u20 and 8u40 indicator here, but can't or don't know how)

To reproduce: Start ProgressIndicatorTest (see Comments) with 8u20 and 8u40 and view the difference
Comments
This is a duplicate of RT-37965
23-09-2014

import javafx.application.Application; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.control.ProgressIndicator; import javafx.scene.control.TableView; import javafx.scene.layout.BorderPane; import javafx.scene.layout.StackPane; import javafx.stage.Stage; public class ProgressIndicatorTest extends Application { @Override public void start(Stage primaryStage) { primaryStage.setScene(new Scene(createRoot(), 300, 200)); primaryStage.show(); } private Parent createRoot() { StackPane stackPane = new StackPane(); BorderPane controlsPane = new BorderPane(); controlsPane.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE); stackPane.getChildren().add(controlsPane); controlsPane.setCenter(new TableView<Void>()); ProgressIndicator indicator = new ProgressIndicator(); indicator.setMaxSize(120, 120); stackPane.getChildren().add(indicator); StackPane.setAlignment(indicator, Pos.BOTTOM_RIGHT); StackPane.setMargin(indicator, new Insets(20)); return stackPane; } public static void main(String[] args) { launch(args); } }
23-09-2014