void () { myErrorLabel.setOpaque(false); myErrorLabel.addHyperlinkListener(new HyperlinkListener() { @Override public void hyperlinkUpdate(HyperlinkEvent e) { updateState(); } }); myErrorStack = new JTextArea(50, 20); myErrorStack.setEditable(false); myErrorPanel.add(myErrorLabel, BorderLayout.NORTH); myErrorPanel.add(ScrollPaneFactory.createScrollPane(myErrorStack), BorderLayout.CENTER); myPanel.add(myErrorPanel); }