Hey there! I'm having a little issue with JavaFX 8 components. I'm trying to make them sit next to each other with borders, but it's not quite working out. Is there a way to make them blend together and share one border?
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
public class SettingsList {
private VBox root;
private String[] settingsList = new String[]{"set1", "set2", "set3"};
public SettingsList(){
}
public Parent getControl(){
root = new VBox();
root.setAlignment(Pos.CENTER);
root.getStylesheets().add(getClass().getResource("settingList.css").toExternalForm());
for(String settingName: settingsList){
Label settingLabel = new Label(settingName);
settingLabel.getStyleClass().add("setting-label");
root.getChildren().add(settingLabel);
}
return root;
}
}