void (boolean show) { if (!show && myReviewPanel != null) { myReviewPanel.clear(); } if (!show && myTabbedPane.getSelectedIndex() > 1) { myTabbedPane.setSelectedIndex(0); } myTabbedPane.setEnabledAt(2, show); // review myTabbedPane.setEnabledAt(3, show); // additional info }