mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-10-29 11:47:01 +00:00
Use ModelUtil.hasLength()
This commit is contained in:
parent
b53b814740
commit
193a9e4c42
@ -187,7 +187,7 @@ public class LoginDialog {
|
||||
quitLogin();
|
||||
}
|
||||
});
|
||||
if (loginPanel.getUsername().trim().length() > 0) {
|
||||
if (ModelUtil.hasLength(loginPanel.getUsername())) {
|
||||
loginPanel.getPasswordField().requestFocus();
|
||||
}
|
||||
|
||||
|
||||
@ -643,7 +643,7 @@ public class LoginUIPanel extends javax.swing.JPanel implements KeyListener, Act
|
||||
quitLogin();
|
||||
}
|
||||
});
|
||||
if (getUsernameField().getText().trim().length() > 0) {
|
||||
if (ModelUtil.hasLength(getUsernameField().getText())) {
|
||||
getPasswordField().requestFocus();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user