-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
x64 Windows7
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b114)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b56, mixed mode)--------------------------------------------------------------
before installing the JDK8,I had install jdk-7u45-windows-x64,
C:\Program Files\Java\jdk1.7.0_45
C:\Program Files\Java\jdk1.8.0I used netbeans 7.4 to run the code.
x64 Windows7 java version "1.8.0-ea" Java(TM) SE Runtime Environment (build 1.8.0-ea-b114) Java HotSpot(TM) 64-Bit Server VM (build 25.0-b56, mixed mode) -------------------------------------------------------------- before installing the JDK8,I had install jdk-7u45-windows-x64, C:\Program Files\Java\jdk1.7.0_45 C:\Program Files\Java\jdk1.8.0 I used netbeans 7.4 to run the code.
code:
---------------------------------------------------------------
package javafxapplication1;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.layout.VBox;
import javafx.scene.text.Text;
import javafx.stage.Stage;
/**
*
* @author Administrator
*/
public class JavaFXApplication1 extends Application {
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("aaaa壹壹壹壹壹壹壹壹壹");
primaryStage.setWidth(200);
primaryStage.setHeight(100);
VBox vBox = new VBox();
Button btn = new Button("bbbbb贰贰贰贰贰贰贰贰贰贰贰贰");
Text text = new Text("ccccc叁叁叁叁叁叁叁叁叁叁");
//text.setFont(new Font("SimSun",12));
TextField tf = new TextField("ddddd肆肆肆肆肆肆肆肆");
vBox.getChildren().addAll(btn, text,tf);
Scene scene = new Scene(vBox);
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
-------------------------------------
result:
-------------------------------------
The title of Stage is OK, but the Text/Button/TextField can not display the chinese charactar correctly.
if invoking .setFont(new Font("SimSun",12)), the chinese charactars are OK.
---------------------------------------------------------------
package javafxapplication1;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.layout.VBox;
import javafx.scene.text.Text;
import javafx.stage.Stage;
/**
*
* @author Administrator
*/
public class JavaFXApplication1 extends Application {
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("aaaa壹壹壹壹壹壹壹壹壹");
primaryStage.setWidth(200);
primaryStage.setHeight(100);
VBox vBox = new VBox();
Button btn = new Button("bbbbb贰贰贰贰贰贰贰贰贰贰贰贰");
Text text = new Text("ccccc叁叁叁叁叁叁叁叁叁叁");
//text.setFont(new Font("SimSun",12));
TextField tf = new TextField("ddddd肆肆肆肆肆肆肆肆");
vBox.getChildren().addAll(btn, text,tf);
Scene scene = new Scene(vBox);
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
-------------------------------------
result:
-------------------------------------
The title of Stage is OK, but the Text/Button/TextField can not display the chinese charactar correctly.
if invoking .setFont(new Font("SimSun",12)), the chinese charactars are OK.
- duplicates
-
JDK-8095122 Composite glyphs broken [again]
-
- Closed
-