*/ JButton clr = new JButton("Clear"); clr.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { jt.setText(""); }}); getContentPane().add(clr,BorderLayout.SOUTH);
 public MidiMonitor()   {     super(PatchEdit.instance,"JSynthLib Midi Monitor",false);        JPanel container= new JPanel();        container.setLayout (new BorderLayout());	jt = new MyEditorPane(); 	JScrollPane pane = new JScrollPane();	pane.getViewport().add(jt);		getContentPane().add (pane, BorderLayout.CENTER);	 pane.getVerticalScrollBar ().addAdjustmentListener (new AdjustmentListener ()        {            public void adjustmentValueChanged (AdjustmentEvent e)            {		    jt.repaint ();            }        });	try {//        jt.setContentType("text/html");//	FileInputStream in = new FileInputStream("documentation.html");//	jt.read(in,(new HTMLEditorKit()).createDefaultDocument());//new HTMLDocument());        jt.setCaretPosition(0);	 jt.setEditable(false);      jt.setFont(new Font("monospaced", Font.PLAIN, 12));             JButton ok = new JButton("Close");        ok.addActionListener(new ActionListener() {	                       public void actionPerformed(ActionEvent e) {                                   OKPressed();			       }});         getContentPane().add(ok,BorderLayout.SOUTH);	getRootPane().setDefaultButton(ok);           setSize(500,400);		 //pane.getVerticalScrollBar().setValue(pane.getVerticalScrollBar().getMinimum());	centerDialog();	}catch (Exception e) {ErrorMsg.reportError("Error","Error opening Monitor",e);}	}