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

JFXPanel Input Problem

    XMLWordPrintable

Details

    • b02

    Description

      When I input Japanse (IME on) to the TextFIeld, which is on JFXPanel,
      small window for inputting appears on top-left side of screen, and I cannot input directly..

      see attachment image file.

      it works, but looks crap.

      thanks.



      1. start the program below
      2. IME on
      3. input to the TextField
      4. result [image|http://pc.gban.jp/?p=45667.png]

      package sample;

      import javafx.application.Platform;
      import javafx.embed.swing.JFXPanel;
      import javafx.scene.Scene;
      import javafx.scene.control.TextField;
      import javafx.scene.layout.GridPane;

      import javax.swing.JFrame;
      import javax.swing.WindowConstants;

      public class Test {

      public static void main(String[] args) {
      final JFXPanel panel = new JFXPanel();
      JFrame frame = new JFrame();
      frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
      frame.setContentPane(panel);
      frame.setSize(100, 100);
      frame.setLocationRelativeTo(null);
      frame.setVisible(true);
      Platform.runLater(new Runnable() {

      @Override
      public void run() {
      GridPane root = new GridPane();
      root.addRow(0, new TextField());
      Scene scene = new Scene(root);
      panel.setScene(scene);
      }
      });
      }
      }

      Attachments

        Issue Links

          Activity

            People

              psadhukhan Prasanta Sadhukhan
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: