m_legendPanel.setBorder(BorderFactory.createTitledBorder("Legend"));
Font lf = new Font("Monospaced", Font.PLAIN, 12); m_legendPanel.setBorder(BorderFactory. createTitledBorder(BorderFactory. createEtchedBorder(Color.gray, Color.darkGray), "Legend" , TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION, lf, Color.blue));
  public void showChart() {    if (m_outputFrame == null) {            m_outputFrame = new JFrame("Strip Chart");      m_outputFrame.getContentPane().setLayout(new BorderLayout());      m_outputFrame.getContentPane().add(m_legendPanel, BorderLayout.WEST);      m_outputFrame.getContentPane().add(m_plotPanel, BorderLayout.CENTER);      m_outputFrame.getContentPane().add(m_scalePanel, BorderLayout.EAST);      m_legendPanel.setMinimumSize(new Dimension(100,getHeight()));      m_legendPanel.setPreferredSize(new Dimension(100,getHeight()));      m_scalePanel.setMinimumSize(new Dimension(30, getHeight()));      m_scalePanel.setPreferredSize(new Dimension(30, getHeight()));      m_legendPanel.setBorder(BorderFactory.createTitledBorder("Legend"));      m_outputFrame.addWindowListener(new java.awt.event.WindowAdapter() {	  public void windowClosing(java.awt.event.WindowEvent e) {	    if (m_updateHandler != null) {	      System.err.println("Interrupting");	      m_updateHandler.interrupt();	      m_updateHandler = null;	    }	    synchronized (m_dataList) {	      m_dataList = new LinkedList();	    }	    m_outputFrame.dispose();	    m_outputFrame = null;	  }	});      m_outputFrame.pack();      m_outputFrame.setSize(600,150);      m_outputFrame.setResizable(false);      m_outputFrame.setVisible(true);      int iwidth = m_plotPanel.getWidth();      int iheight = m_plotPanel.getHeight();      m_osi = m_plotPanel.createImage(iwidth, iheight);      Graphics m = m_osi.getGraphics();      m.fillRect(0,0,iwidth,iheight);      m_previousY[0] = convertToPanelY(0);      setRefreshWidth();      if (m_updateHandler == null) {	System.err.println("Starting handler");	startHandler();      }    }  }