| | |
| | | * information: "Portions Copyright [year] [name of copyright owner]". |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | * Portions Copyright 2013-2016 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.opends.quicksetup.ui; |
| | |
| | | * |
| | | * If we are installing Open DS and the server has already been installed it |
| | | * will display an error message. In the other cases it will display a wizard. |
| | | * |
| | | */ |
| | | public class QuickSetupDialog |
| | | { |
| | |
| | | frame = new JFrame(String.valueOf(application.getFrameTitle())); |
| | | frame.getContentPane().add(getFramePanel()); |
| | | frame.addWindowListener(new WindowAdapter() { |
| | | @Override |
| | | public void windowClosing(WindowEvent e) { |
| | | application.windowClosing(QuickSetupDialog.this, e); |
| | | } |
| | |
| | | Utilities.setFrameIcon(frame); |
| | | } |
| | | |
| | | /** |
| | | * Packs and displays this dialog. |
| | | * |
| | | */ |
| | | /** Packs and displays this dialog. */ |
| | | public void packAndShow() |
| | | { |
| | | frame.pack(); |
| | |
| | | * |
| | | * This method can be called from the event thread or outside the event |
| | | * thread. |
| | | * |
| | | */ |
| | | public void workerStarted() |
| | | { |
| | | Runnable r = new Runnable() |
| | | { |
| | | @Override |
| | | public void run() |
| | | { |
| | | displayWorkingProgressImage(true); |
| | |
| | | * |
| | | * This method can be called from the event thread or outside the event |
| | | * thread. |
| | | * |
| | | */ |
| | | public void workerFinished() |
| | | { |
| | | Runnable r = new Runnable() |
| | | { |
| | | @Override |
| | | public void run() |
| | | { |
| | | displayWorkingProgressImage(false); |