package jira; import javafx.application.Application; import javafx.geometry.Insets; import javafx.scene.Scene; import javafx.scene.layout.VBox; import javafx.scene.paint.Color; import javafx.scene.text.Font; import javafx.scene.text.FontSmoothingType; import javafx.scene.text.Text; import javafx.stage.Stage; public class RT30147 extends Application { public static void main(String[] args) { launch(); } @Override public void start(final Stage stage) { Font font = Font.font("System"); Text text1 = new Text("Test line of underline strikeout"); text1.setFont(font); text1.setUnderline(true); text1.setStrikethrough(true); text1.setFontSmoothingType(FontSmoothingType.LCD); Text text2 = new Text("Test line of underline strikeout"); text2.setFont(font); text2.setUnderline(true); text2.setStrikethrough(true); text1.setFontSmoothingType(FontSmoothingType.LCD); VBox vb = new VBox(text1, text2); vb.setPadding(new Insets(8)); vb.setSpacing(4); Scene scene = new Scene(vb, 300, 100, Color.WHITE); stage.setScene(scene); stage.show(); } }