boolean () { if (isShowing()) return true; if (mySplitter instanceof JBSplitter) { JComponent first = ((JBSplitter)mySplitter).getFirstComponent(); JComponent second = ((JBSplitter)mySplitter).getSecondComponent(); if (first != null && first.isShowing()) return true; if (second != null && second.isShowing()) return true; } return false; }