PlcReadTest.java 571 B

123456789101112131415161718192021
  1. package com.mes.ui;
  2. import javax.swing.*;
  3. /**
  4. * PLC 点位读取测试入口,启动可视化监控窗口。
  5. */
  6. public class PlcReadTest {
  7. public static void main(String[] args) {
  8. SwingUtilities.invokeLater(() -> {
  9. try {
  10. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  11. } catch (Exception ignored) {
  12. }
  13. String plcIp = PlcReadTestFrame.loadPlcIp();
  14. PlcReadTestFrame frame = new PlcReadTestFrame(plcIp);
  15. frame.setVisible(true);
  16. });
  17. }
  18. }