Elaborato_IS/Elaborato_IS/src/ClientApp/RegPane.java

33 lines
651 B
Java

package ClientApp;
import java.util.ArrayList;
import java.util.List;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
public class RegPane extends AbstractAppPane {
@Override
public void gridSetup() {
pannello.setMinHeight(width);
pannello.setMinWidth(heigth);
pannello.setPadding(new Insets(insets));
pannello.setVgap(5);
pannello.setHgap(5);
pannello.setAlignment(Pos.CENTER);
}
public RegPane (int insets, int width, int heigth, String ... S) {
this.width = width;
this.heigth = heigth;
this.insets = insets;
List<String> L = new ArrayList<>();
for (String s: S) {
L.add(s);
}
textFill(L);
}
}