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

DatePicker rendering with Hijra-Umalqura is inconsistent between platforms

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      b101

      Description

      import com.sun.javafx.runtime.VersionInfo;
      import javafx.application.Application;
      import javafx.event.ActionEvent;
      import javafx.event.EventHandler;
      import javafx.scene.Scene;
      import javafx.scene.control.Button;
      import javafx.scene.control.ComboBox;
      import javafx.scene.control.DatePicker;
      import javafx.scene.layout.HBox;
      import javafx.scene.paint.Color;
      import javafx.scene.shape.Circle;
      import javafx.stage.Stage;

      import java.time.chrono.Chronology;

      public class DatePickerApp extends Application {
          public static void main(String[] args) {
              launch(args);
          }

          @Override
          public void start(Stage stage) throws Exception {
              stage.setTitle(VersionInfo.getRuntimeVersion());
              stage.setScene(createScene());

              stage.show();
          }

          private Scene createScene() {
              final DatePicker datePicker = new DatePicker();

              datePicker.setChronology(Chronology.of("Hijrah-umalqura"));
              HBox root = new HBox();
              root.getChildren().add(datePicker);

              return new Scene(root, 400, 300);
          }
      }

        Attachments

          Activity

            People

            Assignee:
            leifs Leif Samuelsson (Inactive)
            Reporter:
            dzinkevi Dmitry Zinkevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:
              Imported: