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"); } } }
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(); }
@Override public boolean isLeaf() { return children.isEmpty(); }
@Override public boolean getAllowsChildren() { return !children.isEmpty(); }