How to make JBSplitter collapsible?
已回答
Hi,
I'm trying to get the JBSplitter to have a feature like the JSplitPane.setOneTouchExpandable, in other words, I want to be able to click a button on the divider to collapse one side in the splitter. I've tried using JBSplitter.setShowDividerControls(true) both on its own and with, JBSplitter.getDivider().setOpaque(true) and JBSplitter.setDividerWidth(100). With all of these I've also tried getDivider().setVisible(true).
If someone could let me know what I'm doing wrong or if this is something I need to implement myself, that would be much appreciated,
Alex
请先登录再写评论。
This feature is not supported (we use one-pixel wide divider while default Swing divider with button inside is pretty thick), for expandable areas we use com.intellij.ui.HideableTitledPanel instead.
Ah I see, thanks a lot