Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个拆分窗格,它们都有一个垂直拆分。我正在尝试在两个分隔器之间添加一个侦听器,以便当我移动一个拆分窗格时,另一个会移动。
基本上:
SplitPane sp1 = ... ; SplitPane sp2 = ... ; // populate split panes... // now bind divider positions: sp1.getDividers().get(0).positionProperty().bindBidirectional( sp2.getDividers().get(0).positionProperty());