-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
8u144
-
x86
-
windows_7
FULL PRODUCT VERSION :
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) Client VM (build 25.144-b01, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
When entering Hebrew characters into a javafx.scene.control.TextField on Windows 7 I don't see the characters, I see empty squares instead.
Doing the same thing on Windows 10 or OS X works.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the example program and enter the Hebrew letter shin: ש
The example program brings up a Swing UI as well. I want to demonstrate that javax.swing.JTextField works and javafx.scene.control.TextField doesn't.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
ש to display.
ACTUAL -
An empty square appears.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.TextField;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class App extends Application
{
private static final int HEIGHT = 250;
private static final int WIDTH = 300;
private static final String TITLE = System.getProperty("java.version");
public static void main(String[] args)
{
SwingUtilities.invokeLater(() -> createAndShowGUI());
launch(args);
}
@Override
public void start(
final Stage primaryStage)
{
primaryStage.setTitle(TITLE);
final StackPane root = new StackPane();
root.getChildren().add(new TextField());
primaryStage.setScene(new Scene(root, WIDTH, HEIGHT));
primaryStage.show();
}
private static void createAndShowGUI()
{
final JFrame frame = new JFrame(TITLE);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(new JTextField());
frame.setMinimumSize(new Dimension(WIDTH, HEIGHT));
frame.pack();
frame.setVisible(true);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Using Windows 10 or OS X.
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) Client VM (build 25.144-b01, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
When entering Hebrew characters into a javafx.scene.control.TextField on Windows 7 I don't see the characters, I see empty squares instead.
Doing the same thing on Windows 10 or OS X works.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the example program and enter the Hebrew letter shin: ש
The example program brings up a Swing UI as well. I want to demonstrate that javax.swing.JTextField works and javafx.scene.control.TextField doesn't.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
ש to display.
ACTUAL -
An empty square appears.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.TextField;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class App extends Application
{
private static final int HEIGHT = 250;
private static final int WIDTH = 300;
private static final String TITLE = System.getProperty("java.version");
public static void main(String[] args)
{
SwingUtilities.invokeLater(() -> createAndShowGUI());
launch(args);
}
@Override
public void start(
final Stage primaryStage)
{
primaryStage.setTitle(TITLE);
final StackPane root = new StackPane();
root.getChildren().add(new TextField());
primaryStage.setScene(new Scene(root, WIDTH, HEIGHT));
primaryStage.show();
}
private static void createAndShowGUI()
{
final JFrame frame = new JFrame(TITLE);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(new JTextField());
frame.setMinimumSize(new Dimension(WIDTH, HEIGHT));
frame.pack();
frame.setVisible(true);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Using Windows 10 or OS X.