FULL PRODUCT VERSION :
Java(TM) SE Runtime Environment (build 9-ea+174)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+174, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
EXTRA RELEVANT SYSTEM CONFIGURATION :
Japanese Environment
A DESCRIPTION OF THE PROBLEM :
When I input Japanese Text with IME to JTextArea on SwingNode, a small input window is shown likeJDK-8090267.
So, on-the-spot does not work with Swing component embedded on SwingNode.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Execute the attached sample code
2. Input text with IME on
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The on-the-spot behavior.
ACTUAL -
The root-window behavior.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class SwingNodeTest extends Application {
public static void main(String[] args) {
Application.launch(args);
}
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("TextArea Test");
Group root = new Group();
Scene scene = new Scene(root, 600, 330, Color.WHITE);
SwingNode swingNode = new SwingNode();
root.getChildren().add(swingNode);
final JTextArea jTextArea = new JTextArea();
try {
SwingUtilities.invokeAndWait(() -> {
jTextArea.setLineWrap(true);
jTextArea.setColumns(10);
jTextArea.setRows(10);
});
} catch (InterruptedException | InvocationTargetException ex) {
ex.printStackTrace();
}
swingNode.setContent(jTextArea);
primaryStage.setScene(scene);
primaryStage.show();
}
---------- END SOURCE ----------
Java(TM) SE Runtime Environment (build 9-ea+174)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+174, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
EXTRA RELEVANT SYSTEM CONFIGURATION :
Japanese Environment
A DESCRIPTION OF THE PROBLEM :
When I input Japanese Text with IME to JTextArea on SwingNode, a small input window is shown like
So, on-the-spot does not work with Swing component embedded on SwingNode.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Execute the attached sample code
2. Input text with IME on
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The on-the-spot behavior.
ACTUAL -
The root-window behavior.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class SwingNodeTest extends Application {
public static void main(String[] args) {
Application.launch(args);
}
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("TextArea Test");
Group root = new Group();
Scene scene = new Scene(root, 600, 330, Color.WHITE);
SwingNode swingNode = new SwingNode();
root.getChildren().add(swingNode);
final JTextArea jTextArea = new JTextArea();
try {
SwingUtilities.invokeAndWait(() -> {
jTextArea.setLineWrap(true);
jTextArea.setColumns(10);
jTextArea.setRows(10);
});
} catch (InterruptedException | InvocationTargetException ex) {
ex.printStackTrace();
}
swingNode.setContent(jTextArea);
primaryStage.setScene(scene);
primaryStage.show();
}
---------- END SOURCE ----------
- relates to
-
JDK-8088113 [Glass, IME] View.enableInputMethodEvents(false) does not disable IME
- Open
-
JDK-8089738 [FXCanvas] SWT IME is not implemented
- Open
-
JDK-8090267 JFXPanel Input Problem
- Resolved