如何移动 facebook 图片使其与文本垂直居中?
代码:
GridPane footerPane = new GridPane();
double size = 15;
TextFlow textFlow = new TextFlow();
Text text1 = new Text("Get prayer time notifications and daily hadith on your mobile by following us on Facebook or Twitter");
text1.setFont(Font.font("Tahoma", size));
text1.setFill(Color.GRAY);
ImageView facebook = new ImageView(new Image(getClass().getResourceAsStream("/Images/facebook.png")));
Text text5 = new Text(".");
text5.setFont(Font.font("Tahoma", size));
textFlow.getChildren().addAll(text1, facebook, text5);
footerPane.setConstraints(footer_Label, 0, 0);
footerPane.getChildren().add(textFlow);
图片: