Show "close panel" menu item only for components in JSplitPane.