| | |
| | | import javax.swing.JFrame; |
| | | import javax.swing.RootPaneContainer; |
| | | import javax.swing.SwingUtilities; |
| | | import javax.swing.UIManager; |
| | | import javax.swing.WindowConstants; |
| | | |
| | | import org.opends.guitools.controlpanel.datamodel.ControlPanelInfo; |
| | |
| | | import org.opends.messages.AdminToolMessages; |
| | | import org.opends.quicksetup.Installation; |
| | | import org.opends.messages.Message; |
| | | import org.opends.quicksetup.ui.UIFactory; |
| | | import org.opends.quicksetup.util.Utils; |
| | | import org.opends.server.util.DynamicConstants; |
| | | import org.opends.server.util.args.ArgumentException; |
| | |
| | | |
| | | private static void initLookAndFeel() throws Throwable |
| | | { |
| | | if (SwingUtilities.isEventDispatchThread()) |
| | | { |
| | | UIManager.setLookAndFeel( |
| | | UIManager.getSystemLookAndFeelClassName()); |
| | | } |
| | | else |
| | | { |
| | | final Throwable[] ts = {null}; |
| | | SwingUtilities.invokeAndWait(new Runnable() |
| | | { |
| | | public void run() |
| | | { |
| | | try |
| | | { |
| | | UIManager.setLookAndFeel( |
| | | UIManager.getSystemLookAndFeelClassName()); |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | | ts[0] = t; |
| | | } |
| | | } |
| | | }); |
| | | if (ts[0] != null) |
| | | { |
| | | throw ts[0]; |
| | | } |
| | | } |
| | | UIFactory.initialize(); |
| | | } |
| | | |
| | | private void updateLocalOrRemotePanel(RootPaneContainer localOrRemote) |