DId you notice that the Reindeer, Runo and Chameleon themes all provide a SPLITPANEL_SMALL style? That will make the splitter 1px wide, which could be enough.
If you really need to make it invisible, you can use a custom style name for it. Quick example (not tested, but should be close):
// JAVA
mySplitPanel.addStyleName("invisible");
// CSS, for vertical split panel (replace vsplitter with hsplitter for horizontal)
.v-splitpanel-vsplitter-invisible {
width: 0;
background: transparent;
}
.v-splitpanel-vsplitter-invisible div {
width: 0;
margin: 0;
background: transparent;
}
Yes, it really must be invisible.
But unfortunately your suggestion did not work.
I tried with addStyleName and setStyleName, but there is no effect.
Plz help!
Did you rememeber to replace
vsplitter with
hsplitter in the CSS (as suggested in the comment). According to the code you provided you do have a SplitPanel with horizontal orientation.