コード例 #1
0
  public static void main(String[] args) {

    List<Srpt_print_barcodes.field> fields = new ArrayList();
    for (int i = 0; i < 300; i++) {
      String barcode = "0000000" + i;
      String description = "Description";
      double price = 100;
      Srpt_print_barcodes.field field = new field(barcode, description, price, true);
      fields.add(field);
    }
    Srpt_print_barcodes rpt = new Srpt_print_barcodes();
    rpt.fields.addAll(fields);
    String jrxml = "rpt_print_barcodes.jrxml";
    JRViewer viewer = get_viewer(rpt, jrxml);
    JFrame f = Application.launchMainFrame3(viewer, "Sample", true);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  }
コード例 #2
0
 public static void main(String[] args) {
   String barangay = "";
   String date_of_billing = "";
   String due_date = "";
   String customer_name = "";
   String tax_declaration_no = "";
   String water_meter_no = "";
   List<Rpt_statement_of_account.field> fields = Rpt_statement_of_account.ret_data("");
   Rpt_statement_of_account rpt =
       new Rpt_statement_of_account(
           barangay, date_of_billing, due_date, customer_name, tax_declaration_no, water_meter_no);
   rpt.fields.addAll(fields);
   String jrxml = "rpt_statement_of_account.jrxml";
   JRViewer viewer = get_viewer(rpt, jrxml);
   JFrame f = Application.launchMainFrame3(viewer, "Sample", true);
   f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 }