public void setIReportConnection(IReportConnection c) {

    this.iReportConnection = c;
    if (iReportConnection instanceof JREmptyDatasourceConnection) {
      JREmptyDatasourceConnection con = (JREmptyDatasourceConnection) iReportConnection;
      jSpinnerNumRecords.getModel().setValue(new Integer(con.getRecords()));
    }
  }
  public IReportConnection getIReportConnection() {

    IReportConnection irConn = new JREmptyDatasourceConnection();

    ((JREmptyDatasourceConnection) irConn)
        .setRecords(
            ((javax.swing.SpinnerNumberModel) jSpinnerNumRecords.getModel())
                .getNumber()
                .intValue());
    iReportConnection = irConn;
    return iReportConnection;
  }