}//GEN-LAST:event_IdentificacionTActionPerformed
private void AceptarBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AceptarBActionPerformed
CanjearPuntos canjepuntos = new CanjearPuntos();
int tipoid = identificacion.getSelectedIndex();
Usuario UsuarioPrueba = canjepuntos.Usuarioexiste(Long.parseLong(IdentificacionT.getText()), tipoid);
Canjes canjeactual = new Canjes();
CanjearPuntos realizarcanje = new CanjearPuntos();
String estadolabel;
if (realizarcanje.id(UsuarioPrueba).equals("El usuario no existe")) {
JOptionPane.showMessageDialog(null, realizarcanje.id(UsuarioPrueba), "Error", JOptionPane.ERROR_MESSAGE);
IdentificacionT.setText("0");
} else {
String estado;
String nombrepremio;
int can = Integer.parseInt(cantidadTF.getText());
nombrepremio = (String) PremiosLD.getSelectedItem();
Usuario user = new Usuario();
if (tipoid == 1) {
user.setIdentificacion(Long.parseLong(IdentificacionT.getText()));
} else {
user.setCodigo(Long.parseLong(IdentificacionT.getText()));
}
if (nombrepremio.equals(city.getEstaciones().get(y).getPremios().get(1).getNombre())) {
premio = city.getEstaciones().get(y).getPremios().get(1).getNombre();
estado = canjepuntos.premiosDispd(c, y, can, nombrepremio,ciudad);
if (estado.equals("Continue")) {