|
@@ -84,14 +84,14 @@ public class WorkStationPanel extends JPanel {
|
|
|
productSnField = new JTextField();
|
|
productSnField = new JTextField();
|
|
|
productSnField.setHorizontalAlignment(SwingConstants.CENTER);
|
|
productSnField.setHorizontalAlignment(SwingConstants.CENTER);
|
|
|
productSnField.setEditable(false);
|
|
productSnField.setEditable(false);
|
|
|
- productSnField.setFont(new Font("微软雅黑", Font.BOLD, 28));
|
|
|
|
|
|
|
+ productSnField.setFont(new Font("微软雅黑", Font.BOLD, 15));
|
|
|
productSnField.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));
|
|
productSnField.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));
|
|
|
productSnField.setColumns(18);
|
|
productSnField.setColumns(18);
|
|
|
- productSnField.setPreferredSize(new Dimension(150, 70));
|
|
|
|
|
|
|
+ productSnField.setPreferredSize(new Dimension(150, 35));
|
|
|
scanButton = new JButton("扫码");
|
|
scanButton = new JButton("扫码");
|
|
|
scanButton.setIcon(new ImageIcon(getClass().getResource("/bg/scan_barcode.png")));
|
|
scanButton.setIcon(new ImageIcon(getClass().getResource("/bg/scan_barcode.png")));
|
|
|
- scanButton.setFont(new Font("微软雅黑", Font.BOLD, 40));
|
|
|
|
|
- scanButton.setPreferredSize(new Dimension(200, 70));
|
|
|
|
|
|
|
+ scanButton.setFont(new Font("微软雅黑", Font.BOLD, 15));
|
|
|
|
|
+ scanButton.setPreferredSize(new Dimension(110, 35));
|
|
|
scanButton.addActionListener(new ActionListener() {
|
|
scanButton.addActionListener(new ActionListener() {
|
|
|
@Override
|
|
@Override
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
public void actionPerformed(ActionEvent e) {
|
|
@@ -141,8 +141,8 @@ public class WorkStationPanel extends JPanel {
|
|
|
buttonPanel.setBackground(Color.WHITE);
|
|
buttonPanel.setBackground(Color.WHITE);
|
|
|
finishOkButton = new JButton("OK");
|
|
finishOkButton = new JButton("OK");
|
|
|
finishOkButton.setIcon(new ImageIcon(getClass().getResource("/bg/ok_bg.png")));
|
|
finishOkButton.setIcon(new ImageIcon(getClass().getResource("/bg/ok_bg.png")));
|
|
|
- finishOkButton.setFont(new Font("微软雅黑", Font.PLAIN, 50));
|
|
|
|
|
- finishOkButton.setPreferredSize(new Dimension(300, 120));
|
|
|
|
|
|
|
+ finishOkButton.setFont(new Font("微软雅黑", Font.PLAIN, 25));
|
|
|
|
|
+ finishOkButton.setPreferredSize(new Dimension(150, 60));
|
|
|
finishOkButton.setEnabled(false);
|
|
finishOkButton.setEnabled(false);
|
|
|
finishOkButton.addActionListener(new ActionListener() {
|
|
finishOkButton.addActionListener(new ActionListener() {
|
|
|
@Override
|
|
@Override
|
|
@@ -152,10 +152,10 @@ public class WorkStationPanel extends JPanel {
|
|
|
});
|
|
});
|
|
|
buttonPanel.add(finishOkButton);
|
|
buttonPanel.add(finishOkButton);
|
|
|
|
|
|
|
|
|
|
+ // 按钮改为刷新
|
|
|
finishNgButton = new JButton("刷新");
|
|
finishNgButton = new JButton("刷新");
|
|
|
- finishNgButton.setIcon(new ImageIcon(getClass().getResource("/bg/ng_bg.png")));
|
|
|
|
|
- finishNgButton.setFont(new Font("微软雅黑", Font.PLAIN, 50));
|
|
|
|
|
- finishNgButton.setPreferredSize(new Dimension(300, 120));
|
|
|
|
|
|
|
+ finishNgButton.setFont(new Font("微软雅黑", Font.PLAIN, 25));
|
|
|
|
|
+ finishNgButton.setPreferredSize(new Dimension(150, 60));
|
|
|
finishNgButton.setEnabled(true);
|
|
finishNgButton.setEnabled(true);
|
|
|
finishNgButton.addActionListener(new ActionListener() {
|
|
finishNgButton.addActionListener(new ActionListener() {
|
|
|
@Override
|
|
@Override
|
|
@@ -271,7 +271,6 @@ public class WorkStationPanel extends JPanel {
|
|
|
checkQualityResult = false;
|
|
checkQualityResult = false;
|
|
|
productSnField.setText("");
|
|
productSnField.setText("");
|
|
|
finishOkButton.setEnabled(false);
|
|
finishOkButton.setEnabled(false);
|
|
|
- finishNgButton.setEnabled(false);
|
|
|
|
|
fxLabel.setVisible(false);
|
|
fxLabel.setVisible(false);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -375,4 +374,4 @@ public class WorkStationPanel extends JPanel {
|
|
|
|
|
|
|
|
dialog.setVisible(true);
|
|
dialog.setVisible(true);
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+}
|