fix #16 asetukset välilehden luonti
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package fi.lpam.gui;
|
||||
|
||||
import fi.lpam.gui.elementit.TabPohja;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.layout.BorderPane;
|
||||
import javafx.scene.layout.HBox;
|
||||
|
||||
|
||||
public class Asetukset extends TabPohja {
|
||||
public Asetukset() {
|
||||
BorderPane root = new BorderPane();
|
||||
root.setPadding(oletusInsets);
|
||||
|
||||
HBox yläpalkki = new HBox();
|
||||
yläpalkki.setSpacing(5);
|
||||
yläpalkki.setAlignment(Pos.CENTER_RIGHT);
|
||||
Button btnTallenna = new Button("Tallenna");
|
||||
btnTallenna.setFont(buttonFont);
|
||||
btnTallenna.setOnAction(e -> tallennaAsetukset());
|
||||
yläpalkki.getChildren().add(btnTallenna);
|
||||
root.setTop(yläpalkki);
|
||||
|
||||
|
||||
root.setCenter(new Label("Asetukset"));
|
||||
|
||||
this.getChildren().add(root);
|
||||
}
|
||||
|
||||
private void tallennaAsetukset() {
|
||||
throw new RuntimeException("Not implemented");
|
||||
}
|
||||
|
||||
private void näytäAsetukset() {
|
||||
throw new RuntimeException("Not implemented");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user