2

in JavaFX 2.2 I want to use a split pane (or better: any component with two dividers) where the dividers can be collapsed / expanded again. Is there any Component which does this already for me (and I just don't get it) or do I have to implement this myself? Would you recommend to use Swing here?

Thanks in advance :)

Edit: Maybe for a better imagination of my problem, the following information is neccessary: I want to split my contents vertically.

content | content | content

(where '|' are the dividers).

bully
  • 5,525
  • 3
  • 22
  • 26

1 Answers1

2

JavaFX has a SplitPane to do this.

The pane does not include a button for collapsing and expanding the divider. Either you need to program such a button yourself or the user can just manually drag the pane dividers.

See also: Can we add OneTouchExpansable button on Javafx SplitPane like swing JSplitPane

I would not recommend using Swing for this unless you have other important reasons to use Swing.

Community
  • 1
  • 1
jewelsea
  • 150,031
  • 14
  • 366
  • 406
  • Hi Jewel, thanks for your answer, I thought so already, but I was not quite sure if I miss anything. Thanks for your quick response :) – bully Sep 08 '12 at 13:18