# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /Users/catlan/Projekte/netbeans/core/swing/plaf/src/org/netbeans/swing/plaf/aqua # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 endcoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: AquaLFCustoms.java *** /Users/catlan/Projekte/netbeans/core/swing/plaf/src/org/netbeans/swing/plaf/aqua/AquaLFCustoms.java Base (1.18) --- /Users/catlan/Projekte/netbeans/core/swing/plaf/src/org/netbeans/swing/plaf/aqua/AquaLFCustoms.java Locally Modified (Based On 1.18) *************** *** 13,18 **** --- 13,19 ---- package org.netbeans.swing.plaf.aqua; + import java.awt.image.BufferedImage; import org.netbeans.swing.plaf.LFCustoms; import org.netbeans.swing.plaf.util.GuaranteedValue; import org.netbeans.swing.plaf.util.UIUtils; *************** *** 23,38 **** import java.awt.*; ! /** Default system-provided customizer for Windows XP LF * Public only to be accessible by ProxyLazyValue, please don't abuse. */ public final class AquaLFCustoms extends LFCustoms { public Object[] createLookAndFeelCustomizationKeysAndValues() { Integer cus = (Integer) UIManager.get("customFontSize"); //NOI18N Object[] result; --- 24,52 ---- import java.awt.*; ! /** Default system-provided customizer for Aqua LF * Public only to be accessible by ProxyLazyValue, please don't abuse. */ public final class AquaLFCustoms extends LFCustoms { public Object[] createLookAndFeelCustomizationKeysAndValues() { + Image applicationIconImage = UIUtils.loadImage("org/netbeans/core/startup/frame48.gif"); //NOI18N + if (applicationIconImage != null) { + applicationIconImage = applicationIconImage.getScaledInstance(64, 64, Image.SCALE_SMOOTH); + + ImageIcon informationIcon = new ImageIcon(applicationIconImage); + ImageIcon warningIcon = produceIcon( + applicationIconImage, + ((ImageIcon)UIManager.get("OptionPane.warningIcon")).getImage() + ); //NOI18N + + UIManager.put("OptionPane.errorIcon", informationIcon); //NOI18N + UIManager.put("OptionPane.informationIcon", informationIcon); //NOI18N + UIManager.put("OptionPane.questionIcon", informationIcon); //NOI18N + UIManager.put("OptionPane.warningIcon", warningIcon); //NOI18N + } + Integer cus = (Integer) UIManager.get("customFontSize"); //NOI18N Object[] result; if (cus != null) { *************** *** 136,143 **** --- 153,172 ---- return result; } + protected ImageIcon produceIcon(Image appIcon, Image symbolIcon) { + BufferedImage result = new BufferedImage(128, 128, BufferedImage.TYPE_INT_ARGB); + Graphics2D g = result.createGraphics(); + g.drawImage(symbolIcon, 0, 0, null); + g.drawImage(appIcon, 64, 64, null); + g.dispose(); + Image image = (BufferedImage)result; + image = image.getScaledInstance(64, 64, Image.SCALE_SMOOTH); + + return new ImageIcon(image); } + }