Description
Run the snippet and see the text painted off-screen on y
public class TestTable extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception {
BorderPane p = new BorderPane();
Canvas c = new Canvas(400,400);
c.getGraphicsContext2D().strokeText("Test", 0, 5);
p.setCenter(c);
Scene s = new Scene(p,400,400);
primaryStage.setScene(s);
primaryStage.show();
}
}
public class TestTable extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage primaryStage) throws Exception {
BorderPane p = new BorderPane();
Canvas c = new Canvas(400,400);
c.getGraphicsContext2D().strokeText("Test", 0, 5);
p.setCenter(c);
Scene s = new Scene(p,400,400);
primaryStage.setScene(s);
primaryStage.show();
}
}
Attachments
Issue Links
- relates to
-
JDK-8094534 [Canvas] GraphicsContext methods are poorly documented
- Resolved