|
@@ -181,7 +181,11 @@ public class LoginFarme extends JFrame {
|
|
|
//登录成功
|
|
//登录成功
|
|
|
MesClient.user_menu.setText(user_id);
|
|
MesClient.user_menu.setText(user_id);
|
|
|
MesClient.welcomeWin.setVisible(false);
|
|
MesClient.welcomeWin.setVisible(false);
|
|
|
|
|
+ // Apply the maximized state when the main window is actually shown after login.
|
|
|
|
|
+ MesClient.mesClientFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
|
|
|
MesClient.mesClientFrame.setVisible(true);
|
|
MesClient.mesClientFrame.setVisible(true);
|
|
|
|
|
+ MesClient.mesClientFrame.revalidate();
|
|
|
|
|
+ MesClient.mesClientFrame.repaint();
|
|
|
|
|
|
|
|
if(MesClient.jfxPanel == null){
|
|
if(MesClient.jfxPanel == null){
|
|
|
String url = "http://"+ MesClient.mes_server_ip+":8980/js/a/mes/mesProductRecord/work?oprno="+MesClient.mes_gw+"&lineSn="+MesClient.mes_line_sn;
|
|
String url = "http://"+ MesClient.mes_server_ip+":8980/js/a/mes/mesProductRecord/work?oprno="+MesClient.mes_gw+"&lineSn="+MesClient.mes_line_sn;
|