| ÎļþÃû´Ó src/chuankou/SystemDebugDialog.java ÐÞ¸Ä |
| | |
| | | package chuankou; |
| | | package xitongshezhi; |
| | | |
| | | import javax.swing.*; |
| | | import javax.swing.border.EmptyBorder; |
| | | |
| | | import chuankou.Sendmsg; |
| | | import chuankou.SerialPortService; |
| | | |
| | | import java.awt.*; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | |
| | | |
| | | // å
³éæé® |
| | | JButton closeButton = new JButton("å
³é"); |
| | | closeButton.setFont(new Font("Microsoft YaHei", Font.PLAIN, 14)); |
| | | closeButton.setFont(new Font("å®ä½", Font.PLAIN, 12)); |
| | | closeButton.setBackground(DANGER_COLOR); |
| | | closeButton.setForeground(Color.WHITE); |
| | | closeButton.setFocusPainted(false); |
| | |
| | | pollingButton.setText("å¯å¨æ¥è¯¢"); |
| | | pollingButton.setBackground(SECONDARY_COLOR); |
| | | onDataReceivedascii("[" + getCurrentTime() + "] stop\n"); |
| | | lunxun.setDEBUG_ENABLED(false); |
| | | } |
| | | } else { |
| | | // 妿æªè½®è¯¢ï¼åå¯å¨ |
| | | if (lunxun.startPolling()) { |
| | | lunxun.setDEBUG_ENABLED(true); |
| | | pollingButton.setText("忢æ¥è¯¢"); |
| | | pollingButton.setBackground(DANGER_COLOR); |
| | | onDataReceivedascii("[" + getCurrentTime() + "] strat\n"); |