247248249250251252253254255256257
parseIncomingLine(TEMP_NODE_DATA[TEMP_COUNTER]); TEMP_COUNTER = (TEMP_COUNTER + 1) % TEMP_NODE_DATA.length; updateCharts(); } }); updateTimer.start(); } } public void connectToCOMPort() { /* Connect to COM using external serialdump application */
105106107108109110111112113114115
@Override public void actionPerformed(final ActionEvent e) { JMemoryMonitorBar.this.repaint(); } }); timer.start(); } @Override protected void paintComponent(final Graphics g) { super.paintComponent(g);
463464465466467468469470471472473
mainPanel.revalidate(); mainPanel.repaint(); progressBar.setValue(0); } }); progressBarTimer.start(); } lastProgress = progress; } }
431432433434435436437438439440441
164165166167168169170171172173174
label.setBackground(new Color(255, 0, 0, 125)); label.setOpaque(true); final Timer t = new Timer(5000, new ClearErrorMessageAction(label)); t.setRepeats(false); t.start(); return label; } public void exceptionsCleared() {
156157158159160161162163164165166
label.setBackground(new Color(255, 255, 0, 125)); label.setOpaque(true); final Timer t = new Timer(5000, new ClearWarningMessageAction(label)); t.setRepeats(false); t.start(); return label; } public void notifyInspectionStarted() {
148149150151152153154155156157158
okPanel.add(Box.createRigidArea(new Dimension(50, 0))); okPanel.add(cancel); this.add(okPanel); Timer time = new Timer(5, this); time.start(); } @Override public void actionPerformed(ActionEvent e) {
108109110111112113114115116117118
} ); Timer time = new Timer(5, this); time.start(); } public int getPort(){ return port;
149150151152153154155156157158159
106107108109110111112113114115116