JavaFX accordion with multiple open panes -
is possible have accordion more 1 open pane in javafx?
no, javafx 2.2 accordion can have 1 open pane @ time.
i created enhancement request (jdk-8090554 stackedtitledpanes control) feature allows open more 1 pane in accordion @ time, feature request has not been implemented.
in meantime, can construct similar control quite creating multiple titledpane instances , placing these in vbox.
private vbox createstackedtitledpanes() { final vbox stackedtitledpanes = new vbox(); stackedtitledpanes.getchildren().setall( new titledpane("pane 1", contentnode1), new titledpane("pane 2", contentnode2), new titledpane("pane 3", contentnode3) ); ((titledpane) stackedtitledpanes.getchildren().get(0)).setexpanded(true); return stackedtitledpanes; } if necessary, can wrap vbox containing panes in scrollpane, contents of of expanded panes can usable if area overflows available area.
i created sample solution (icons linkware from: http://www.fasticon.com).

Comments
Post a Comment