Search code examples
javafx-2javafxaccordionfxmlscene

How to set different heights on panels from an accordion?


is there a way to have panels with different heights in an accordion in JavaFX? I would like to know how to do it. I've googled it but I haven't found what I need.


Solution

  • you can do this with setPrefHeight of pane....

    try this.

    pane.setPrefHeight(400);