- JLabel waiting_value = new JLabel("Waiting for MicroPeak data...");
- pane.add(waiting_value, c);
+ status_value = new JLabel("Waiting for MicroPeak data...");
+ pane.add(status_value, c);
+ y++;
+
+ serial_log = new JTextArea(10, 20);
+ serial_log.setEditable(false);
+
+ JScrollPane serial_scroll = new JScrollPane(serial_log);
+ serial_scroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
+
+ c = new GridBagConstraints();
+ c.gridx = 0; c.gridy = y;
+ c.gridwidth = GridBagConstraints.REMAINDER;
+ c.fill = GridBagConstraints.BOTH;
+ c.weightx = 1;
+ c.weighty = 1;
+ c.anchor = GridBagConstraints.LINE_START;
+ c.insets = ir;
+
+ pane.add(serial_scroll, c);
+ y++;