I currently have a ListView that is resizable in Width and I use a custom CellFactory that returns my custom ListCell objects.
I already read this: Customize ListView in JavaFX with FXML and I use a similar construct like the one mentioned:
public class ListViewCell extends ListCell<String>{
@Override
public void updateItem(String string, boolean empty){
super.updateItem(string,empty);
if(string != null) {
...
setGraphic(myComponent);
}
}
I want myComponent
to take the full size that is available inside the ListCell, however it seems that the setGraphic
method limits the size of the given Node.
I can provide all my code if it is necessary, however I am not sure which parts are relevant and I do not want to post a big wall of code.