/** * Removes the status bar. * * @param s the status bar * @exception NullPointerException if the java frame is null * @exception NullPointerException if the status bar is null * @exception NullPointerException if the content pane is null */ public void removeStatusBar(StatusBar s) throws NullPointerException { javax.swing.JFrame f = (javax.swing.JFrame) getJavaObject(); if (f != null) { if (s != null) { java.awt.Container cp = f.getContentPane(); if (cp != null) { cp.remove((javax.swing.JLabel) s.getJavaObject()); } else { throw new NullPointerException("Could not set status bar. The content pane is null."); } } else { throw new NullPointerException("Could not set status bar. The status bar is null."); } } else { throw new NullPointerException("Could not set status bar. The java frame is null."); } }