How to make JBSplitter collapsible?

Answered

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

0
2 comments
Avatar
Permanently deleted user

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.

0

Ah I see, thanks a lot

0

Please sign in to leave a comment.