示例#1
2
  void bPronadji_actionPerformed(ActionEvent e) {
    if (txtOznakaBanke.getText().equals("")) {
      JOptionPane.showMessageDialog(null, "Oznaka banke mora biti uneta");
      txtOznakaBanke.grabFocus();
    } else {
      Vector filijale = DBF.getFilijale(txtOznakaBanke.getText());
      if (!filijale.isEmpty()) {

        ((TModelPrijave) tabBanke.getModel()).rejoinData(filijale);

        String adresa = DBF.getadresaB(txtOznakaBanke.getText());
        jLadresaBanke.setText(adresa);

        jLnazivBanke.setText(DBF.getnazivB(txtOznakaBanke.getText()));

      } else {
        JOptionPane.showMessageDialog(null, "Nije pronadjena ni jedna filijala");
      }
    }
  }
示例#2
0
文件: Arena.java 项目: pokus001/vivae
 public Surface getSurfaceUnderVivaeObject(VivaeObject actor) {
   Vector<Surface> surfacesActorIsOn = new Vector<Surface>();
   Surface srfc = null;
   for (Surface surface : surfaces) {
     srfc = surface;
     Area actArea = actor.getArea();
     actArea.intersect(srfc.getArea());
     if (!actArea.isEmpty()) {
       surfacesActorIsOn.add(srfc);
     }
   }
   if (surfacesActorIsOn.isEmpty()) {
     return null;
   }
   srfc = surfacesActorIsOn.get(surfacesActorIsOn.size() - 1);
   return srfc;
 }
 /**
  * Determine whether the wizard has panels
  *
  * @return true if the wizard has one or more panels
  */
 public boolean hasPanels() {
   return !panels.isEmpty();
 }
示例#4
0
 @Override
 public boolean isLeaf() {
   return children.isEmpty();
 }
示例#5
0
 @Override
 public boolean getAllowsChildren() {
   return !children.isEmpty();
 }