コード例 #1
0
  /**
   * Removes the title.
   *
   * @param t the title
   * @exception NullPointerException if the java frame is null
   * @exception NullPointerException if the title is null
   */
  public void removeTitle(String t) throws NullPointerException {

    javax.swing.JFrame f = (javax.swing.JFrame) getJavaObject();

    if (f != null) {

      if (t != null) {

        f.setTitle(null);

      } else {

        throw new NullPointerException("Could not set title. The title is null.");
      }

    } else {

      throw new NullPointerException("Could not set title. The java frame is null.");
    }
  }