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).

fishyfishy


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -