| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.opends.quicksetup.ui; |
| | |
| | | |
| | | private JEditorPane detailsTextArea; |
| | | |
| | | private JScrollPane scroll; |
| | | |
| | | private Message lastText; |
| | | |
| | | private JFrame parent; |
| | |
| | | } |
| | | |
| | | /** |
| | | * Sets the title of the panel. |
| | | * @param title the title of the panel. |
| | | */ |
| | | public void setPanelTitle(Message title) |
| | | { |
| | | this.panelTitle = title; |
| | | } |
| | | |
| | | /** |
| | | * Returns the title of the panel. |
| | | * @return the title of the panel |
| | | */ |
| | |
| | | gbc.insets = UIFactory.getEmptyInsets(); |
| | | mainPanel.add(l, gbc); |
| | | |
| | | scroll = new JScrollPane(); |
| | | JScrollPane scroll = new JScrollPane(); |
| | | detailsTextArea = UIFactory.makeProgressPane(scroll); |
| | | detailsTextArea.setBackground( |
| | | UIFactory.CURRENT_STEP_PANEL_BACKGROUND); |
| | |
| | | if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) |
| | | { |
| | | String url = e.getURL().toString(); |
| | | Message newText = getFormatter().getFormattedAfterUrlClick(url, |
| | | lastText = getFormatter().getFormattedAfterUrlClick(url, |
| | | lastText); |
| | | lastText = newText; |
| | | setDetails(lastText); |
| | | } |
| | | } |