void () { boolean isEmpty = myInnerSplitterContents.isEmpty(); if (!isEmpty) { setBorder(myInnerSplitter.getFirstComponent(), true); setBorder(myInnerSplitter.getInnerComponent(), false); } setBorder(myParentSplitter.getSecondComponent(), isEmpty); }