import com.proudapes.jlatexmathfx.Control.LateXMathControl;
import javafx.scene.control.ListCell;
public class Celll extends ListCell<String> {
@Override
public void updateItem(String item, boolean empty) {
super.updateItem(item, empty);
if (item != null) {
final LateXMathControl l = new LateXMathControl(item);
setGraphic(l);
}
}
}
Here's a "minimal" example of the problem. I pretty much copied your test and simply added a ListView with a custom renderer. Here is the main class:
Here's the Cell renderer:
And here is what is displayed: