Icon errorIcon = UIManager.getIcon("OptionPane.errorIcon"); BufferedImage errorImage = new BufferedImage( errorIcon.getIconWidth(), errorIcon.getIconHeight(), BufferedImage.TYPE_INT_RGB);
JPanel p = new JPanel(new BorderLayout()); p.add(new JLabel(s, JLabel.LEFT), BorderLayout.WEST); Icon icon = UIManager.getIcon("FileChooser.detailsViewIcon"); p.add(new JLabel(icon, JLabel.RIGHT), BorderLayout.EAST); p.setBorder(BorderFactory.createLineBorder(Color.blue));
super(UIManager.getIcon("OptionPane.informationIcon")); setContentAreaFilled(false); setFocusPainted(false);
public Thumbnail(String name) { this.name = name; this.icon = UIManager.getIcon("OptionPane."+name+"Icon");
/** * Returns the default icon that is used to represent leaf nodes. * * @return The default icon for leaf nodes. */ public Icon getDefaultLeafIcon() { return UIManager.getIcon("Tree.leafIcon"); }
/** * Returns the default icon that is used to represent non-leaf nodes that * are expanded. * * @return The default icon for non-leaf expanded nodes. */ public Icon getDefaultOpenIcon() { return UIManager.getIcon("Tree.openIcon"); }
/** Get the icon displayed by a collapsed set. Typically this is just the * icon the look and feel supplies for trees */ static Icon getCollapsedIcon() { Icon collapsedIcon = UIManager.getIcon(isGtk ? "Tree.gtk_collapsedIcon" : "Tree.collapsedIcon"); //NOI18N if (collapsedIcon == null) { LOG.info("no Tree.collapsedIcon found"); } return collapsedIcon; }
/** Get the icon displayed by an expanded set. Typically this is just the * same icon the look and feel supplies for trees */ static Icon getExpandedIcon() { Icon expandedIcon = UIManager.getIcon(isGtk ? "Tree.gtk_expandedIcon" : "Tree.expandedIcon"); //NOI18N if (expandedIcon == null) { LOG.info("no Tree.expandedIcon found"); } return expandedIcon; }
/** * Constructor. * @param s small icon * @param l large icon */ Msg(final String s, final String l) { small = BaseXImages.icon(s); large = UIManager.getIcon("OptionPane." + l + "Icon"); } }
/** * Constructor. * @param s small icon * @param l large icon */ Msg(final String s, final String l) { small = BaseXImages.icon(s); large = UIManager.getIcon("OptionPane." + l + "Icon"); } }
/** * Returns the default icon to use for leaf cell. * * @return the icon to use for leaf cell. */ protected Icon getLeafIcon() { return leafIcon != null ? leafIcon : UIManager .getIcon(getUIKey("leafIcon")); }
/** * Installs this ui delegate's properties. */ protected void installDelegate() { isLeftToRight = monthView.getComponentOrientation().isLeftToRight(); // PENDING JW: remove here if rendererHandler takes over control completely // as is, some properties are duplicated monthDownImage = UIManager.getIcon("JXMonthView.monthDownFileName"); monthUpImage = UIManager.getIcon("JXMonthView.monthUpFileName"); // install date related state setFirstDisplayedDay(monthView.getFirstDisplayedDay()); }
protected JButton createArrowButton() { return new NimRODComboBoxButton( comboBox, UIManager.getIcon( "ComboBox.buttonDownIcon"), (comboBox.isEditable() ? true : false), currentValuePane, listBox); }
@Override public void installUI (JComponent c) { super.installUI (c); JRadioButton radioButton = (JRadioButton) c; radioButton.setFont (UIManager.getFont ("RadioButton.font")); radioButton.setBackground (UIManager.getColor ("RadioButton.background")); radioButton.setForeground (UIManager.getColor ("RadioButton.foreground")); radioButton.setIcon (UIManager.getIcon ("RadioButton.icon")); radioButton.setSelectedIcon (UIManager.getIcon ("RadioButton.selectedIcon")); }
public BasicGlossaryNavigatorUI(JHelpGlossaryNavigator b) { ImageIcon icon = getImageIcon(b.getNavigatorView()); if (icon != null) { setIcon(icon); } else { setIcon(UIManager.getIcon("GlossaryNav.icon")); } }
public BasicTOCNavigatorUI(JHelpTOCNavigator b) { debug (this + " " + "CreateUI - sort of"); ImageIcon icon = getImageIcon(b.getNavigatorView()); if (icon != null) { setIcon(icon); } else { setIcon(UIManager.getIcon("TOCNav.icon")); } }