public class Usuario_pass
extends javax.
swing.
JFrame {
/** Creates new form Usuario_pass */
return cadena;
}
public void setCadena
(String cadena
) { this.cadena = cadena;
}
return cadena1;
}
public void setCadena1
(String cadena1
) { this.cadena1 = cadena1;
}
public Usuario_pass() {
initComponents();
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jLabel1
= new javax.
swing.
JLabel(); jLabel2
= new javax.
swing.
JLabel(); jButton1
= new javax.
swing.
JButton();
jLabel1.setText("Usuario");
public void actionPerformed
(java.
awt.
event.
ActionEvent evt
) { jTextField1ActionPerformed(evt);
}
});
jTextField1.
addKeyListener(new java.
awt.
event.
KeyAdapter() { public void keyPressed
(java.
awt.
event.
KeyEvent evt
) { jTextField1KeyPressed(evt);
}
});
jLabel2.setText("clave");
jButton1.setText("conectar");
jButton1.
addMouseListener(new java.
awt.
event.
MouseAdapter() { public void mouseClicked
(java.
awt.
event.
MouseEvent evt
) { jButton1MouseClicked(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(26, 26, 26)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(56, 56, 56)
.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(56, 56, 56)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(layout.createSequentialGroup()
.addGap(103, 103, 103)
.addComponent(jButton1)))
.
addContainerGap(78,
Short.
MAX_VALUE)) );
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(77, 77, 77)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(40, 40, 40)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(51, 51, 51)
.addComponent(jButton1)
.
addContainerGap(69,
Short.
MAX_VALUE)) );
pack();
}// </editor-fold>
private void jTextField1ActionPerformed
(java.
awt.
event.
ActionEvent evt
) { // TODO add your handling code here:
}
private void jButton1MouseClicked
(java.
awt.
event.
MouseEvent evt
) { // TODO add your handling code here:
cadena =jTextField1.getText();
cadena1 =jTextField2.getText();
}
private void jTextField1KeyPressed
(java.
awt.
event.
KeyEvent evt
) { // TODO add your handling code here:
}
/**
* @param args the command line arguments
*/
// Variables declaration - do not modify
private javax.
swing.
JButton jButton1
; private javax.
swing.
JLabel jLabel1
; private javax.
swing.
JLabel jLabel2
; // End of variables declaration
}