| | |
| | | |
| | | package org.opends.quicksetup.ui; |
| | | |
| | | import org.opends.quicksetup.util.Utils; |
| | | |
| | | import javax.swing.*; |
| | | import javax.swing.text.JTextComponent; |
| | | import java.awt.*; |
| | |
| | | return panel; |
| | | } |
| | | |
| | | /** |
| | | * Sets a frames image icon to the standard OpenDS icon appropriate |
| | | * for the running platform. |
| | | * |
| | | * @param frame for which the icon will be set |
| | | */ |
| | | static public void setFrameIcon(JFrame frame) { |
| | | UIFactory.IconType ic; |
| | | if (Utils.isMacOS()) { |
| | | ic = UIFactory.IconType.MINIMIZED_MAC; |
| | | } else { |
| | | ic = UIFactory.IconType.MINIMIZED; |
| | | } |
| | | frame.setIconImage(UIFactory.getImageIcon(ic).getImage()); |
| | | } |
| | | |
| | | } |