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

When using a textfield in a popup, the input method candidate box is always in top-left corner

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      windows11 23H2;jdk22;javafx22.01

      A DESCRIPTION OF THE PROBLEM :
      When I enter Chinese in the `textfield` in a `popup`, the input method candidate box is always in the top-left corner of the screen.

      REGRESSION : Last worked in version 22.0.1

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Enter Chinese in the `textfield` in the `popup`.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      When entering Chinese in the `textfield`, the candidate box is always in the top-left corner of the screen.
      ACTUAL -
      When entering Chinese in the `textfield`, the candidate box is always in the top-left corner of the screen.

      ---------- BEGIN SOURCE ----------
      public class InputTest extends Application {

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

          @Override
          public void start(Stage stage) throws Exception {
              StackPane root = new StackPane();
              stage.setScene(new Scene(root, 300, 300));
              stage.show();
              Popup popup = new Popup();
              popup.getContent().add(new TextField());
              popup.show(stage);
          }
      }
      ---------- END SOURCE ----------

      FREQUENCY : always


        1. recording.mkv
          491 kB
        2. Test.java
          0.5 kB

            mfox Martin Fox
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: