mirror of
https://github.com/FatttSnake/ClassroomInteraction.git
synced 2026-04-06 01:01:26 +08:00
Fix the login password error is not prompted
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package com.cfive.classroom.library.net.util;
|
||||
|
||||
import com.cfive.classroom.library.net.util.MessageObject;
|
||||
|
||||
public interface ReceiveListener {
|
||||
void onReceive(MessageObject messageObject);
|
||||
}
|
||||
|
||||
@@ -33,12 +33,7 @@ public class MainWindow{
|
||||
@Override
|
||||
public void keyPressed(KeyEvent e) {
|
||||
if(e.getKeyCode()==KeyEvent.VK_ENTER){
|
||||
if(check()){
|
||||
Center center = new Center(stuNoText.getText());
|
||||
center.start();
|
||||
frame.dispose();
|
||||
}
|
||||
|
||||
login.doClick();
|
||||
}
|
||||
}
|
||||
@Override
|
||||
@@ -68,7 +63,6 @@ public class MainWindow{
|
||||
String stuPassword = String.valueOf(passwordText.getPassword());
|
||||
String stuNo = String.valueOf(stuNoText.getText());
|
||||
LOGGER.info(Long.valueOf(stuNo));
|
||||
LOGGER.info(stuPassword);
|
||||
//判断密码
|
||||
boolean checkPassword = false;
|
||||
try {
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.List;
|
||||
|
||||
public class SignIn {
|
||||
private static final SignIn sigIn = new SignIn();
|
||||
private static final JFrame frame = new JFrame("教师端");;
|
||||
private static final JFrame frame = new JFrame("教师端");
|
||||
private JPanel rootJPanel;
|
||||
private JButton login_Button;
|
||||
private JTextField workerNo_input;
|
||||
|
||||
Reference in New Issue
Block a user