private void get_rate() { int row = cb_discount.getItemCount(); if (row <= 0) { return; } System.out.println(cb_discount.getSelectedItem().toString()); String rate = S2_get_discounts.get_discounts_rate(cb_discount.getSelectedItem().toString()); lb_rate.setText(rate); double discount = FitIn.toDouble(rate) / 100; if (j == 1) { // discount = to2.getTo_pay() * discount; // double to_pay = to2.to_pay - discount; // double dollar = to_pay / 41; // report_get_viewer_session(to2, jrxml_name); } // System.out.println(rate); }
private void init_cb() { cb_discount.setModel(new ListComboBoxModel(S2_get_discounts.get_discounts_for_cb())); get_rate(); }