Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8134315

[LineChart] Blurry elements since 8u60

    Details

    • Subcomponent:
    • Understanding:
      Cause Known
    • Introduced In Version:
    • CPU:
      x86_64
    • OS:
      windows_7

      Description

      Since 8u60 nearly all elements of the LineChart are blurry (see attached image). This makes the LineChart of 8u60 almost unusable. For us this is a blocker for the update from 8u51 to 8u60.

      import javafx.application.Application;
      import javafx.application.Platform;
      import javafx.collections.FXCollections;
      import javafx.collections.ObservableList;
      import javafx.scene.Scene;
      import javafx.scene.chart.LineChart;
      import javafx.scene.chart.NumberAxis;
      import javafx.scene.chart.XYChart.Data;
      import javafx.scene.chart.XYChart.Series;
      import javafx.stage.Stage;

      public class RunTest extends Application {

      @Override
      public void start(Stage primaryStage) throws Exception {
      ObservableList<Data<Number, Number>> dataList = FXCollections.observableArrayList();
      dataList.add(new Data<Number, Number>(0, 0));
      dataList.add(new Data<Number, Number>(1, 0));
      dataList.add(new Data<Number, Number>(2, 1));
      dataList.add(new Data<Number, Number>(2, 2));
      dataList.add(new Data<Number, Number>(3, 2));
      dataList.add(new Data<Number, Number>(4, 0));
      Series<Number, Number> series = new Series<>(dataList);
      Platform.runLater(() -> series.getNode().setStyle("-fx-stroke-width: 1px;-fx-stroke: black;"));
      ObservableList<Series<Number, Number>> seriesList = FXCollections.observableArrayList(series);
      LineChart<Number, Number> lineChart = new LineChart<>(new NumberAxis(), new NumberAxis(), seriesList);
      primaryStage.setScene(new Scene(lineChart));
      primaryStage.show();
      }

      public static void main(String[] args) {
      launch(args);
      }

      }

        Attachments

        1. 1-8u40.png
          1-8u40.png
          115 kB
        2. 2-8u60.png
          2-8u60.png
          128 kB
        3. 3-9.png
          3-9.png
          128 kB
        4. 4-9-fixed.png
          4-9-fixed.png
          116 kB
        5. 5-9-HiDPI.png
          5-9-HiDPI.png
          202 kB
        6. 6-9-HiDPI-fixed.png
          6-9-HiDPI-fixed.png
          187 kB
        7. BarChartTest.java
          6 kB
        8. LineChart_Blurry-Elements-since-8u60.png
          LineChart_Blurry-Elements-since-8u60.png
          81 kB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                aliebelt Andreas Liebelt
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: