/** * Add component to the main frames status bar. * * @param comp * Component to add. */ public void addToStatusBar(JComponent comp) { final MainFrame mf = getMainFrame(); if (mf != null) { mf.addToStatusBar(comp); } else { throw new IllegalStateException(s_stringMgr.getString("Application.error.compadding")); } }
/** * Add component to the main frames status bar. * * @param comp * Component to add. */ public void addToStatusBar(JComponent comp) { final MainFrame mf = getMainFrame(); if (mf != null) { mf.addToStatusBar(comp); } else { throw new IllegalStateException(s_stringMgr.getString("Application.error.compadding")); } }