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

DatePicker rendering with Hijra-Umalqura is inconsistent between platforms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P5 P5
    • 8
    • 8
    • javafx
    • b101

      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);
          }
      }

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

              Created:
              Updated:
              Resolved:
              Imported: