private JScrollPane getScrollPane(JTextArea label, Action closeAction) {
private static JScrollPane getScrollPane(JTextArea label, Action closeAction) {
    private JScrollPane getScrollPane(JTextArea label, Action closeAction) {        JScrollPane scrollPane = new JScrollPane(label);        final String CLOSE = "close";        scrollPane.getActionMap().put(CLOSE, closeAction);        InputMap inputMap = scrollPane.getInputMap();        inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), CLOSE);        inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0), CLOSE);        inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), CLOSE);        return scrollPane;    }