@Override protected void installComponents() { super.installComponents(); this.errorMessage.setBorder(null); this.errorScrollPane.setOpaque(false); this.errorScrollPane.getViewport().setOpaque(false); this.iconGlowTracker = new IconGlowTracker(this.iconLabel); }
.getIcon("resource/22/dialog-information.png")); this.iconGlowTracker = new IconGlowTracker(didYouKnow); didYouKnow.setIcon(new GlowingIcon(infoIcon, this.iconGlowTracker)); didYouKnow.setDescription("");
@Override protected void addIcon(Container top) { Icon sideIcon = (optionPane == null ? null : optionPane.getIcon()); if (sideIcon == null && optionPane != null) sideIcon = super.getIconForType(optionPane.getMessageType()); if (sideIcon != null) { if (!SubstanceLookAndFeel.isToUseConstantThemesOnDialogs()) { sideIcon = SubstanceCoreUtilities.getThemedIcon(null, sideIcon); } this.substanceIconLabel = new OptionPaneLabel(); this.iconGlowTracker = new IconGlowTracker(substanceIconLabel); this.substanceIconLabel.setIcon(new GlowingIcon(sideIcon, this.iconGlowTracker)); this.substanceIconLabel.setName("OptionPane.iconLabel"); this.substanceIconLabel.setVerticalAlignment(SwingConstants.TOP); top.add(this.substanceIconLabel, BorderLayout.BEFORE_LINE_BEGINS); } }
@Override protected void addIcon(Container top) { Icon sideIcon = (optionPane == null ? null : optionPane.getIcon()); if (sideIcon == null && optionPane != null) sideIcon = super.getIconForType(optionPane.getMessageType()); if (sideIcon != null) { if (!SubstanceLookAndFeel.isToUseConstantThemesOnDialogs()) { sideIcon = SubstanceCoreUtilities.getThemedIcon(null, sideIcon); } this.substanceIconLabel = new OptionPaneLabel(); this.iconGlowTracker = new IconGlowTracker(substanceIconLabel); this.substanceIconLabel.setIcon(new GlowingIcon(sideIcon, this.iconGlowTracker)); this.substanceIconLabel.setName("OptionPane.iconLabel"); this.substanceIconLabel.setVerticalAlignment(SwingConstants.TOP); top.add(this.substanceIconLabel, BorderLayout.BEFORE_LINE_BEGINS); } }
.getRepaintCallback()); this.iconGlowTracker = new IconGlowTracker(this.component);
.getRepaintCallback()); this.iconGlowTracker = new IconGlowTracker(this.component);