(ActionEvent e)
| 53 | editorPane.setText(message); //display the html text with the above style |
| 54 | editorPane.getActionMap().put("insert-break", new AbstractAction(){ |
| 55 | public void actionPerformed(ActionEvent e) {} |
| 56 | }); //suppress beep on <ENTER> key |
| 57 | JScrollPane scrollPane = new JScrollPane(editorPane); |
| 58 | container.add(scrollPane); |