#fix 19 TabPohja on nyt Tab, joka hoitaa monia asioita kuin itsestään
Signed-off-by: laurimaaninka <lauri.maaninka@gmail.com>
This commit is contained in:
@@ -52,13 +52,9 @@ public class AsiakasIkkuna extends Stage {
|
||||
}});
|
||||
|
||||
Tab tabKuljetusTiedot, tabAsiakastiedot;
|
||||
tabKuljetusTiedot = new Tab("Kuljetustiedot");
|
||||
tabAsiakastiedot = new Tab("Asiakastiedot");
|
||||
tabKuljetusTiedot = new TabPohja("Kuljetustiedot");
|
||||
tabAsiakastiedot = new TabPohja("Asiakastiedot");
|
||||
tabPane.getTabs().addAll(tabKuljetusTiedot, tabAsiakastiedot);
|
||||
for (Tab tab : tabPane.getTabs()) {
|
||||
tab.setClosable(false);
|
||||
tab.setStyle("-fx-font-size: 18px; -fx-font-weight: bold; -fx-font-family: Open Sans");
|
||||
}
|
||||
|
||||
GridPane kuljetusTiedot = new GridPane();
|
||||
kuljetusTiedot.setPadding(new Insets(15));
|
||||
@@ -158,15 +154,15 @@ public class AsiakasIkkuna extends Stage {
|
||||
|
||||
HBox napit = new HBox();
|
||||
Button peruuta = new Button("Peruuta");
|
||||
peruuta.setFont(TabPohja.buttonFont);
|
||||
peruuta.setFont(TabPohja.BUTTON_FONT);
|
||||
peruuta.setOnAction(_ -> this.close());
|
||||
Button tallenna = new Button("Tallenna");
|
||||
tallenna.setFont(TabPohja.buttonFont);
|
||||
tallenna.setFont(TabPohja.BUTTON_FONT);
|
||||
tallenna.setOnAction(_ -> tallenna());
|
||||
napit.getChildren().addAll(peruuta, tallenna);
|
||||
napit.setAlignment(Pos.CENTER_RIGHT);
|
||||
napit.setSpacing(10);
|
||||
napit.setPadding(TabPohja.oletusInsets);
|
||||
napit.setPadding(TabPohja.INSETS);
|
||||
|
||||
|
||||
VBox root = new VBox();
|
||||
|
||||
Reference in New Issue
Block a user