Пример #1
0
 private void OKPress() {
   Window owner = win.getOwner();
   if (table.isEditing()) table.removeEditor();
   if (win != null) {
     win.dispose();
     win = null;
   }
   raProcess.runChild(
       owner,
       new Runnable() {
         public void run() {
           performMatching();
         }
       });
   if (total.one == 0 && raProcess.isCompleted())
     JOptionPane.showMessageDialog(
         owner, "Nema stavaka za pokrivanje!", "Poruka", JOptionPane.INFORMATION_MESSAGE);
   else if (total.one > 0)
     JOptionPane.showMessageDialog(
         owner,
         Aus.getNumDep(
                 total.one,
                 "Pokriven " + total.one + " saldo",
                 "Pokrivena " + total.one + " salda",
                 "Pokriveno " + total.one + " salda")
             + " na ukupno "
             + Aus.getNum(total.two, "stavci.", "stavke.", "stavaka."),
         "Poruka",
         JOptionPane.INFORMATION_MESSAGE);
 }