1. StatusBar
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.control.Label; import javafx.scene.layout.HBox; public class FxStatusBar { HBox hbox; Label text; public FxStatusBar(String label) { text = new Label(label); text.setAlignment(Pos.CENTER_LEFT); hbox = new HBox(16); hbox.setAlignment(Pos.CENTER_LEFT); hbox.setPadding(new Insets(4, 4, 4, 4)); hbox.getChildren().add(text); } public void setText(String value) { text.setText(value); } public HBox getHBox() { return hbox; } } |
댓글 없음:
댓글 쓰기