|
|
@@ -89,6 +89,7 @@ public class MesClient extends JFrame {
|
|
|
public static JLabel feedingLight;
|
|
|
public static JLabel replyLight;
|
|
|
public static JLabel plcCodeLabel; // PLC 码内容回显(DB5000.260)
|
|
|
+ public static JLabel successLabel; // 打码成功提示
|
|
|
public static ImageIcon imageGreen;
|
|
|
public static ImageIcon imageGray;
|
|
|
public static Timer lightTimer;
|
|
|
@@ -209,6 +210,9 @@ public class MesClient extends JFrame {
|
|
|
planStop = false;
|
|
|
nextRetryTime = 0;
|
|
|
qrLoaded = false;
|
|
|
+ if(successLabel != null){
|
|
|
+ successLabel.setVisible(false);
|
|
|
+ }
|
|
|
MesClient.finish_ok_bt.setEnabled(false);
|
|
|
MesClient.finish_ng_bt.setEnabled(false);
|
|
|
product_sn.setText("");
|
|
|
@@ -548,9 +552,17 @@ public class MesClient extends JFrame {
|
|
|
// PLC 码内容回显
|
|
|
plcCodeLabel = new JLabel("PLC码(DB5000.260):-");
|
|
|
plcCodeLabel.setFont(new Font("微软雅黑", Font.PLAIN, 18));
|
|
|
- plcCodeLabel.setBounds(81, 270, 810, 35);
|
|
|
+ plcCodeLabel.setBounds(81, 270, 600, 35);
|
|
|
indexPanelA.add(plcCodeLabel);
|
|
|
|
|
|
+ // 打码成功提示:PLC 反馈到位后显示
|
|
|
+ successLabel = new JLabel("打码成功");
|
|
|
+ successLabel.setFont(new Font("微软雅黑", Font.BOLD, 22));
|
|
|
+ successLabel.setForeground(Color.GREEN);
|
|
|
+ successLabel.setBounds(700, 270, 190, 35);
|
|
|
+ successLabel.setVisible(false);
|
|
|
+ indexPanelA.add(successLabel);
|
|
|
+
|
|
|
finish_ok_bt = new JButton("OK");
|
|
|
finish_ok_bt.setEnabled(false);
|
|
|
finish_ok_bt.addActionListener(new ActionListener() {
|