URLWorker.java revision 563
563N/A * The contents of this file are subject to the terms of the 563N/A * Common Development and Distribution License, Version 1.0 only 563N/A * (the "License"). You may not use this file except in compliance 563N/A * You can obtain a copy of the license at 563N/A * See the License for the specific language governing permissions 563N/A * and limitations under the License. 563N/A * When distributing Covered Code, include this CDDL HEADER in each 563N/A * file and include the License file at 563N/A * add the following below this CDDL HEADER, with the fields enclosed 563N/A * by brackets "[]" replaced with your own identifying * information: 563N/A * Portions Copyright [yyyy] [name of copyright owner] 563N/A * Portions Copyright 2006 Sun Microsystems, Inc. 563N/A * This class is used to try to launch a URL in the user web browser. 563N/A * The class extends SwingWorker and tries to launch the URL using 563N/A * a WebBrowserLauncher object in the construct method. 563N/A * If there is a problem launching the user's browser, this class will display 563N/A * a WebBrowserErrorDialog to allow the user to copy to the system clipboard the 563N/A * URL we wanted to display. 563N/A * When is finished (successfully or unsuccessfully) it notifies the 563N/A * QuickSetupStepPanel passed in the constructor. 563N/A * Constructs a URLWorker. 563N/A * @param panel the panel that created this URLWorker and to which we will 563N/A * notify when we are over. 563N/A * @param url the url to be displayed. 563N/A // Notify to the panel that the worker has finished. 563N/A * Returns the URL that we are trying to launch in the users browser. 563N/A * @return the URL that we are trying to launch in the users browser.