/** Se crea nun tablero cuando se crea una nueva partida */ public Mesa() { /** Establesco las cartas del maso */ maso = new ArrayList<Carta>(); for (Palo palo : Palo.values()) { for (Nombre nombre : Nombre.values()) { maso.add(new Carta(palo, nombre)); } } }
@Override protected void onPostExecute(String message) { super.onPostExecute(message); dialog.dismiss(); // Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show(); Toast toastR = Toast.makeText( getApplicationContext(), "Se ha registrado el usuario", Toast.LENGTH_SHORT); toastR.show(); Nombre.setText(""); Correo.setText(""); Telefono.setText(""); Contraseña.setText(""); Intent intent = new Intent(getApplicationContext(), MiCencel.class); startActivity(intent); }
@Override protected String doInBackground(String... params) { String result = ""; try { URL url = new URL(params[0]); HttpURLConnection cnn = (HttpURLConnection) url.openConnection(); cnn.setRequestMethod("POST"); cnn.setDoOutput(true); cnn.setRequestProperty("Content-Type", "application/json"); // cuerpo de la peticion JSONObject datosAsociadoObj = new JSONObject(); datosAsociadoObj.put("NombreCompleto", Nombre.getText()); datosAsociadoObj.put("Contrasena", Contraseña.getText()); datosAsociadoObj.put("Telefono", Telefono.getText()); datosAsociadoObj.put("Correo", Correo.getText()); OutputStream output = cnn.getOutputStream(); output.write(datosAsociadoObj.toString().getBytes("UTF-8")); cnn.connect(); // Validar si regreso algo o no InputStream stream = cnn.getInputStream(); byte[] b = new byte[1024]; ByteArrayOutputStream baos = new ByteArrayOutputStream(); while (stream.read(b) != -1) baos.write(b); String responseJson = new String(baos.toByteArray()); JSONObject jsonObject = new JSONObject(responseJson); result = jsonObject.getString("d"); } catch (Throwable t) { t.printStackTrace(); return null; } return result; }
private void NombreKeyTyped(java.awt.event.KeyEvent evt) { // GEN-FIRST:event_NombreKeyTyped if (Nombre.getText().length() == 20) { evt.consume(); } } // GEN-LAST:event_NombreKeyTyped
private void botonOKActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_botonOKActionPerformed /* * Si no se introducen el Tipo_Periodicidad es ninguno, se rellenan a 0 */ // Si la periodicidad es ninguna, no nos interesan la cuantia y el tiempo if (((String) Tipo_Periodicidad.getSelectedItem()).compareTo("Ninguna") == 0) { Cuantia_Donaciones.setText("0"); Periodicidad_Donaciones.setText("0"); } if (Telefono.getText().compareTo(" ") == 0) { Telefono.setText("0"); } if (NIF_CIF.getText().compareTo("") == 0) { JOptionPane.showMessageDialog( this, "El NIF del donante no se ha introducido.", "NIF Donante", JOptionPane.ERROR_MESSAGE); } else if (Nombre.getText().compareTo("") == 0) { JOptionPane.showMessageDialog( this, "El nombre del donante no se ha introducido.", "Nombre Donante", JOptionPane.ERROR_MESSAGE); } else if (Apellidos.getText().compareTo("") == 0) { JOptionPane.showMessageDialog( this, "Los apellidos del donante no se han introducido.", "Apellidos Donante", JOptionPane.ERROR_MESSAGE); } else if (NIF_Voluntario.getText().compareTo("") == 0) { JOptionPane.showMessageDialog( this, "El NIF del voluntario no se ha introducido.", "NIF Voluntario", JOptionPane.ERROR_MESSAGE); } else if (!ValidarCampos.isEmail(Email.getText())) { JOptionPane.showMessageDialog( this, "El Email no es correcto. Debe ser valido", "Email Invalido", JOptionPane.ERROR_MESSAGE); } else if (Telefono.getText().compareTo("") != 0 && !ValidarCampos.isInteger(Telefono.getText())) { JOptionPane.showMessageDialog( this, "El telefono no es correcto. Debe ser de tipo numerico", "Telefono Beneficiario", JOptionPane.ERROR_MESSAGE); } else if (!ValidarCampos.isDouble(Cuantia_Donaciones.getText())) { JOptionPane.showMessageDialog( this, "La Cuantia de Donaciones no es correcta. Debe ser un numero", "Cuantia Donaciones Invalido", JOptionPane.ERROR_MESSAGE); } else if (!ValidarCampos.isInteger(Periodicidad_Donaciones.getText())) { JOptionPane.showMessageDialog( this, "La Periodicidad de Donaciones no es correcta. Debe ser un numero", "Cuantia Donaciones Invalido", JOptionPane.ERROR_MESSAGE); } else { /* * Conversion de la fecha */ Date Fecha_Nac = null; SimpleDateFormat formatoFecha = new SimpleDateFormat("dd/MM/yy"); try { Fecha_Nac = formatoFecha.parse(Fecha_Nacimiento.getText()); } catch (ParseException ex) { Logger.getLogger(jAltaDonante.class.getName()).log(Level.SEVERE, null, ex); JOptionPane.showMessageDialog( this, "Fecha de nacimiento incorrecto, utilice formato dd/MM/yy.", "Fecha de Nacimiento", JOptionPane.ERROR_MESSAGE); } /* * IntroducirDatosDonante */ boolean correcto = ONG.gestorDonantes.introducirDatosDonante( NIF_CIF.getText().toUpperCase(), Nombre.getText(), Apellidos.getText(), Fecha_Nac, Localidad.getText(), Email.getText(), Integer.parseInt(Telefono.getText()), (String) Tipo_Donante.getSelectedItem(), new Date(), Observaciones.getText(), Integer.parseInt(Periodicidad_Donaciones.getText()), Double.parseDouble(Cuantia_Donaciones.getText()), (String) Tipo_Periodicidad.getSelectedItem(), NIF_Voluntario.getText()); if (correcto) { ONG.gestorDonantes.confirmarFinAlta(); } else { JOptionPane.showMessageDialog( this, "No se ha podido crear el nuevo Donante", "ERROR", JOptionPane.ERROR_MESSAGE); } /* * Actualizamos la pantalla principal */ UI.cl.show(UI.jPrincipal, "Donantes"); } } // GEN-LAST:event_botonOKActionPerformed
/** * This method is called from within the constructor to initialize the form. WARNING: Do NOT * modify this code. The content of this method is always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { Tipo_Periodicidad = new javax.swing.JComboBox(); Apellidos = new javax.swing.JTextField(); Cuantia_Donaciones = new javax.swing.JTextField(); jLabel20 = new javax.swing.JLabel(); Fecha_Nacimiento = new javax.swing.JFormattedTextField(); NIF_Voluntario = new javax.swing.JTextField(); Telefono = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); Localidad = new javax.swing.JTextField(); botonCancel = new javax.swing.JButton(); jSeparator4 = new javax.swing.JSeparator(); jScrollPane2 = new javax.swing.JScrollPane(); Observaciones = new javax.swing.JTextArea(); NIF_CIF = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jSeparator1 = new javax.swing.JSeparator(); jLabel11 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); botonOK = new javax.swing.JButton(); jLabel18 = new javax.swing.JLabel(); jSeparator3 = new javax.swing.JSeparator(); Nombre = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); Email = new javax.swing.JTextField(); jLabel13 = new javax.swing.JLabel(); Periodicidad_Donaciones = new javax.swing.JTextField(); jLabel7 = new javax.swing.JLabel(); Tipo_Donante = new javax.swing.JComboBox(); jLabel9 = new javax.swing.JLabel(); setBackground(new java.awt.Color(211, 232, 254)); Tipo_Periodicidad.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N Tipo_Periodicidad.setModel( new javax.swing.DefaultComboBoxModel(new String[] {"Ninguna", "Días", "Meses", "Años"})); Apellidos.setColumns(30); Apellidos.addKeyListener( new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { ApellidosKeyTyped(evt); } }); Cuantia_Donaciones.setColumns(9); Cuantia_Donaciones.addKeyListener( new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { Cuantia_DonacionesKeyTyped(evt); } }); jLabel20.setText("NIF Voluntario"); Fecha_Nacimiento.setColumns(9); Fecha_Nacimiento.setFormatterFactory( new javax.swing.text.DefaultFormatterFactory( new javax.swing.text.DateFormatter( java.text.DateFormat.getDateInstance(java.text.DateFormat.SHORT)))); Fecha_Nacimiento.setText("d/mm/aa"); NIF_Voluntario.setBackground(new java.awt.Color(255, 255, 153)); NIF_Voluntario.setColumns(9); NIF_Voluntario.addKeyListener( new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { NIF_VoluntarioKeyTyped(evt); } }); Telefono.setColumns(9); jLabel4.setText("Nombre"); jLabel8.setText("Email"); jLabel6.setText("Nacimiento"); jLabel15.setText("Observaciones"); Localidad.setColumns(20); Localidad.addKeyListener( new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { LocalidadKeyTyped(evt); } }); botonCancel.setText("Cancelar"); botonCancel.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { botonCancelActionPerformed(evt); } }); Observaciones.setColumns(20); Observaciones.setRows(5); Observaciones.addKeyListener( new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { ObservacionesKeyTyped(evt); } }); jScrollPane2.setViewportView(Observaciones); NIF_CIF.setColumns(9); NIF_CIF.addKeyListener( new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { NIF_CIFKeyTyped(evt); } }); jLabel3.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N jLabel3.setText("Dar de alta a un donante"); jLabel1.setBackground(new java.awt.Color(211, 232, 254)); jLabel1.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N jLabel1.setText("Donantes"); jLabel11.setText("Localidad"); jLabel2.setText("NIF"); jLabel12.setText("Telefono"); botonOK.setText("Ok"); botonOK.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { botonOKActionPerformed(evt); } }); jLabel18.setText("Cuantia Donaciones"); Nombre.setColumns(20); Nombre.addKeyListener( new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { NombreKeyTyped(evt); } }); jLabel5.setText("Apellidos"); jLabel17.setText("Tipo Periodicidad"); Email.addKeyListener( new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { EmailKeyTyped(evt); } }); jLabel13.setText("Periodicidad Donaciones"); Periodicidad_Donaciones.addKeyListener( new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { Periodicidad_DonacionesKeyTyped(evt); } }); jLabel7.setText("Tipo Donante"); Tipo_Donante.setModel( new javax.swing.DefaultComboBoxModel(new String[] {"Persona", "Empresa"})); jLabel9.setIcon( new javax.swing.ImageIcon(getClass().getResource("/diaketas/Iconos/Socios.gif"))); // NOI18N javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSeparator1) .addGroup( layout .createSequentialGroup() .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addContainerGap() .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addComponent(jLabel9) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement .RELATED) .addComponent(jLabel1)) .addComponent(jLabel3) .addComponent( jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 536, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup( layout .createSequentialGroup() .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment .LEADING) .addComponent(jLabel6) .addComponent(jLabel2) .addComponent(jLabel4) .addComponent(jLabel5)) .addGap(36, 36, 36) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment .LEADING) .addComponent( NIF_CIF, javax.swing.GroupLayout .PREFERRED_SIZE, javax.swing.GroupLayout .DEFAULT_SIZE, javax.swing.GroupLayout .PREFERRED_SIZE) .addComponent( Nombre, javax.swing.GroupLayout .PREFERRED_SIZE, javax.swing.GroupLayout .DEFAULT_SIZE, javax.swing.GroupLayout .PREFERRED_SIZE) .addComponent( Apellidos, javax.swing.GroupLayout .PREFERRED_SIZE, javax.swing.GroupLayout .DEFAULT_SIZE, javax.swing.GroupLayout .PREFERRED_SIZE) .addComponent( Fecha_Nacimiento, javax.swing.GroupLayout .PREFERRED_SIZE, javax.swing.GroupLayout .DEFAULT_SIZE, javax.swing.GroupLayout .PREFERRED_SIZE))) .addGroup( layout .createSequentialGroup() .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment .LEADING) .addComponent(jLabel8) .addComponent(jLabel12) .addComponent(jLabel11)) .addGap(46, 46, 46) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment .LEADING) .addComponent( Localidad, javax.swing.GroupLayout .PREFERRED_SIZE, javax.swing.GroupLayout .DEFAULT_SIZE, javax.swing.GroupLayout .PREFERRED_SIZE) .addComponent( Telefono, javax.swing.GroupLayout .PREFERRED_SIZE, javax.swing.GroupLayout .DEFAULT_SIZE, javax.swing.GroupLayout .PREFERRED_SIZE) .addComponent( Email, javax.swing.GroupLayout .PREFERRED_SIZE, 226, javax.swing.GroupLayout .PREFERRED_SIZE)))) .addGap(42, 42, 42) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel15) .addComponent( jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 477, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent( jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 477, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup( layout .createSequentialGroup() .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment .LEADING) .addComponent(jLabel17) .addComponent(jLabel13) .addComponent(jLabel7) .addComponent(jLabel18)) .addGap(18, 18, 18) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment .LEADING) .addComponent( Cuantia_Donaciones, javax.swing.GroupLayout .PREFERRED_SIZE, javax.swing.GroupLayout .DEFAULT_SIZE, javax.swing.GroupLayout .PREFERRED_SIZE) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout .Alignment.LEADING, false) .addComponent( Tipo_Periodicidad, 0, 128, Short.MAX_VALUE) .addComponent( Periodicidad_Donaciones) .addComponent( Tipo_Donante, 0, javax.swing.GroupLayout .DEFAULT_SIZE, Short.MAX_VALUE)))))) .addGroup( layout .createSequentialGroup() .addGap(428, 428, 428) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel20) .addComponent( botonOK, javax.swing.GroupLayout.Alignment.TRAILING)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent( NIF_Voluntario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(botonCancel)))) .addContainerGap())); layout.setVerticalGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addContainerGap() .addComponent(jLabel9)) .addGroup( layout .createSequentialGroup() .addGap(44, 44, 44) .addComponent(jLabel1))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent( jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addGap(12, 12, 12) .addComponent(jLabel3) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent( jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup( javax.swing.GroupLayout.Alignment.TRAILING, layout .createSequentialGroup() .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent( jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel2) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent( NIF_CIF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7) .addComponent( Tipo_Donante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent( Nombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent( Apellidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6) .addComponent( Fecha_Nacimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent( Email, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8))) .addGroup( layout .createSequentialGroup() .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel13) .addComponent( Periodicidad_Donaciones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent( Tipo_Periodicidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel17)) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addComponent(jLabel18) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement .UNRELATED) .addComponent(jLabel15)) .addComponent( Cuantia_Donaciones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup( layout .createSequentialGroup() .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel11) .addComponent( Localidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup( layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent( Telefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel12))) .addComponent( jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(22, 22, 22) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent( NIF_Voluntario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel20)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup( layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(botonOK) .addComponent(botonCancel)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); } // </editor-fold>//GEN-END:initComponents