#17 Luotu custom label luokka, otettu uudet säädöt käyttöön mahdollisimman monessa paikkaa #18
@@ -35,7 +35,7 @@ public class Asetukset extends TabPohja {
|
|||||||
yläpalkki.getChildren().add(btnNollaa);
|
yläpalkki.getChildren().add(btnNollaa);
|
||||||
root.setTop(yläpalkki);
|
root.setTop(yläpalkki);
|
||||||
|
|
||||||
root.setLeft(getFonttiAsetukset());
|
root.setCenter(getFonttiAsetukset());
|
||||||
|
|
||||||
this.getChildren().add(root);
|
this.getChildren().add(root);
|
||||||
}
|
}
|
||||||
@@ -43,7 +43,7 @@ public class Asetukset extends TabPohja {
|
|||||||
private Spinner<Integer> tekstiFonttiKoko, buttonFonttiKoko, tulostusFonttiKoko, insets;
|
private Spinner<Integer> tekstiFonttiKoko, buttonFonttiKoko, tulostusFonttiKoko, insets;
|
||||||
private ComboBox<String> tekstiFontti, buttonFontti;
|
private ComboBox<String> tekstiFontti, buttonFontti;
|
||||||
private int minFonttiKoko = 8;
|
private int minFonttiKoko = 8;
|
||||||
private int maxFonttiKoko = 30;
|
private int maxFonttiKoko = 25;
|
||||||
private int stepFontti = 1;
|
private int stepFontti = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -53,8 +53,8 @@ public class Asetukset extends TabPohja {
|
|||||||
private GridPane getFonttiAsetukset() {
|
private GridPane getFonttiAsetukset() {
|
||||||
GridPane root = new GridPane();
|
GridPane root = new GridPane();
|
||||||
root.setAlignment(Pos.CENTER);
|
root.setAlignment(Pos.CENTER);
|
||||||
root.setHgap(10);
|
root.setHgap(spacing*2);
|
||||||
root.setVgap(10);
|
root.setVgap(spacing*2);
|
||||||
root.setBorder(oletusBorder);
|
root.setBorder(oletusBorder);
|
||||||
root.setPadding(oletusInsets);
|
root.setPadding(oletusInsets);
|
||||||
int row = 0;
|
int row = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user