MCPcopy Index your code
hub / github.com/AnthonyZabs/SimpleJavaLoginMD / passTxtMousePressed

Method passTxtMousePressed

src/com/login/Login.java:249–258  ·  view source on GitHub ↗
(java.awt.event.MouseEvent evt)

Source from the content-addressed store, hash-verified

247 }//GEN-LAST:event_userTxtMousePressed
248
249 private void passTxtMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_passTxtMousePressed
250 if (String.valueOf(passTxt.getPassword()).equals("********")) {
251 passTxt.setText("");
252 passTxt.setForeground(Color.black);
253 }
254 if (userTxt.getText().isEmpty()) {
255 userTxt.setText("Ingrese su nombre de usuario");
256 userTxt.setForeground(Color.gray);
257 }
258 }//GEN-LAST:event_passTxtMousePressed
259
260 private void loginBtnTxtMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_loginBtnTxtMouseClicked
261 javax.swing.JOptionPane.showMessageDialog(this, "Intento de login con los datos:\nUsuario: " + userTxt.getText() + "\nContraseña: " + String.valueOf(passTxt.getPassword()), "LOGIN", javax.swing.JOptionPane.INFORMATION_MESSAGE);

Callers 1

mousePressedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected