-
Bug
-
Resolution: Unresolved
-
P3
-
8, 9
-
Eclipse Luna on Win 7
While I want use setStrokeType() to set text border Outside or Inside, the program become irresponsive. In my case, after setting one
of label text border as Outside using setStrokeType(), the program can still running , but slowly. If I add another setStrokeType(), it becomes irresponsive.
here's my code:
#label{
-fx-font:25 Arial;
-fx-font-weight:900;
-fx-fill: white;
-fx-stroke: #989898;
-fx-stroke-width: 1;
-fx-stroke-type:outside;
-fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.45), 2, 0, 0, 1);
}
public class Main extends Application {
@Override
public void start(Stage primaryStage) {
StackPane root = new StackPane();
Scene scene = new Scene(root, 856, 290);
primaryStage.setResizable(false);
root.setId("pane");
scene.getStylesheets().add("./application/application.css");
CheckBox check_1 = new CheckBox("Check two");
check_1.getStyleClass().add("check");
CheckBox check_2 = new CheckBox("Check one");
check_2.getStyleClass().add("check");
Text t= new Text("TEST TEST TEST TEST");
t.setId("label");
root.getChildren().addAll(check_1,check_2,t);
primaryStage.setTitle("Hello world");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
try
{
launch(args);
}
catch (Exception e)
{
System.out.println(e.toString());
}
}
}
of label text border as Outside using setStrokeType(), the program can still running , but slowly. If I add another setStrokeType(), it becomes irresponsive.
here's my code:
#label{
-fx-font:25 Arial;
-fx-font-weight:900;
-fx-fill: white;
-fx-stroke: #989898;
-fx-stroke-width: 1;
-fx-stroke-type:outside;
-fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.45), 2, 0, 0, 1);
}
public class Main extends Application {
@Override
public void start(Stage primaryStage) {
StackPane root = new StackPane();
Scene scene = new Scene(root, 856, 290);
primaryStage.setResizable(false);
root.setId("pane");
scene.getStylesheets().add("./application/application.css");
CheckBox check_1 = new CheckBox("Check two");
check_1.getStyleClass().add("check");
CheckBox check_2 = new CheckBox("Check one");
check_2.getStyleClass().add("check");
Text t= new Text("TEST TEST TEST TEST");
t.setId("label");
root.getChildren().addAll(check_1,check_2,t);
primaryStage.setTitle("Hello world");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
try
{
launch(args);
}
catch (Exception e)
{
System.out.println(e.toString());
}
}
}
- duplicates
-
JDK-8150374 Text effect causes poor performance
-
- Closed
-
-
JDK-8317793 Set stroke type on Text
-
- Closed
-
- relates to
-
JDK-8090672 OpenPiscesRasterizer's and NativePiscesRasterizer's getMaskData(): Optimize and cast check
-
- Open
-