| | |
| | | package org.opends.quicksetup.ui; |
| | | |
| | | import org.opends.messages.Message; |
| | | |
| | | import static org.opends.messages.QuickSetupMessages.*; |
| | | |
| | | import java.awt.Color; |
| | |
| | | import java.awt.event.MouseAdapter; |
| | | import java.awt.event.MouseEvent; |
| | | import java.util.HashMap; |
| | | import java.util.logging.Level; |
| | | import java.util.logging.Logger; |
| | | |
| | | import javax.swing.*; |
| | | import javax.swing.text.JTextComponent; |
| | |
| | | |
| | | private static String parentPackagePath; |
| | | |
| | | private static final Logger LOG = Logger.getLogger(UIFactory.class.getName()); |
| | | |
| | | /** |
| | | * Specifies the horizontal insets between buttons. |
| | | */ |
| | |
| | | new HashMap<IconType, ImageIcon>(); |
| | | |
| | | static { |
| | | UIManager.put("OptionPane.background", |
| | | getColor(INFO_OPTIONPANE_BACKGROUND_COLOR.get())); |
| | | UIManager.put("Panel.background", |
| | | getColor(INFO_PANEL_BACKGROUND_COLOR.get())); |
| | | UIManager.put("ComboBox.background", |
| | | getColor(INFO_COMBOBOX_BACKGROUND_COLOR.get())); |
| | | try |
| | | { |
| | | UIManager.put("OptionPane.background", |
| | | getColor(INFO_OPTIONPANE_BACKGROUND_COLOR.get())); |
| | | UIManager.put("Panel.background", |
| | | getColor(INFO_PANEL_BACKGROUND_COLOR.get())); |
| | | UIManager.put("ComboBox.background", |
| | | getColor(INFO_COMBOBOX_BACKGROUND_COLOR.get())); |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | | // This might occur when we do not get the display |
| | | LOG.log(Level.WARNING, "Error updating UIManager: "+t, t); |
| | | } |
| | | } |
| | | |
| | | /** |