diff --git a/java/jshell.support/src/org/netbeans/modules/jshell/editor/ExecutingGlassPanel.form b/java/jshell.support/src/org/netbeans/modules/jshell/editor/ExecutingGlassPanel.form index d42ce1d7a4f7..c9bed0675cff 100644 --- a/java/jshell.support/src/org/netbeans/modules/jshell/editor/ExecutingGlassPanel.form +++ b/java/jshell.support/src/org/netbeans/modules/jshell/editor/ExecutingGlassPanel.form @@ -74,8 +74,8 @@ - - + + diff --git a/java/jshell.support/src/org/netbeans/modules/jshell/editor/ExecutingGlassPanel.java b/java/jshell.support/src/org/netbeans/modules/jshell/editor/ExecutingGlassPanel.java index ea518c6f6671..6303c4154653 100644 --- a/java/jshell.support/src/org/netbeans/modules/jshell/editor/ExecutingGlassPanel.java +++ b/java/jshell.support/src/org/netbeans/modules/jshell/editor/ExecutingGlassPanel.java @@ -20,6 +20,7 @@ import java.awt.event.ActionListener; import javax.swing.ImageIcon; +import org.openide.util.ImageUtilities; import org.openide.util.NbBundle; /** @@ -77,7 +78,7 @@ private void initComponents() { )); org.openide.awt.Mnemonics.setLocalizedText(msgLabel, org.openide.util.NbBundle.getMessage(ExecutingGlassPanel.class, "ExecutingGlassPanel.msgLabel.text")); // NOI18N - stopButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/netbeans/modules/jshell/resources/stop.png"))); // NOI18N + stopButton.setIcon(ImageUtilities.loadIcon("org/netbeans/modules/jshell/resources/stop.gif")); org.openide.awt.Mnemonics.setLocalizedText(stopButton, org.openide.util.NbBundle.getMessage(ExecutingGlassPanel.class, "ExecutingGlassPanel.stopButton.text")); // NOI18N stopButton.setBorder(null); stopButton.setBorderPainted(false); diff --git a/java/spring.beans/src/org/netbeans/modules/spring/beans/wizards/SpringXMLConfigNamespacesVisual.form b/java/spring.beans/src/org/netbeans/modules/spring/beans/wizards/SpringXMLConfigNamespacesVisual.form index 7b1bd440c8f1..ba4797fa1e94 100644 --- a/java/spring.beans/src/org/netbeans/modules/spring/beans/wizards/SpringXMLConfigNamespacesVisual.form +++ b/java/spring.beans/src/org/netbeans/modules/spring/beans/wizards/SpringXMLConfigNamespacesVisual.form @@ -134,7 +134,7 @@ - + diff --git a/java/spring.beans/src/org/netbeans/modules/spring/beans/wizards/SpringXMLConfigNamespacesVisual.java b/java/spring.beans/src/org/netbeans/modules/spring/beans/wizards/SpringXMLConfigNamespacesVisual.java index 35dfc5928445..afda22a07677 100644 --- a/java/spring.beans/src/org/netbeans/modules/spring/beans/wizards/SpringXMLConfigNamespacesVisual.java +++ b/java/spring.beans/src/org/netbeans/modules/spring/beans/wizards/SpringXMLConfigNamespacesVisual.java @@ -140,7 +140,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { } }); - springNotOnClassPathLabel.setIcon(new ImageIcon(ImageUtilities.loadImage("org/netbeans/modules/spring/beans/resources/warning.gif")) ); + springNotOnClassPathLabel.setIcon(ImageUtilities.loadIcon("org/netbeans/modules/spring/beans/resources/warning.gif")); org.openide.awt.Mnemonics.setLocalizedText(springNotOnClassPathLabel, org.openide.util.NbBundle.getMessage(SpringXMLConfigNamespacesVisual.class, "LBL_SpringNotOnClassPath")); // NOI18N cbSpringVersion.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No Library found" })); diff --git a/php/php.project/src/org/netbeans/modules/php/project/connections/sync/SyncPanel.form b/php/php.project/src/org/netbeans/modules/php/project/connections/sync/SyncPanel.form index a8931c616f30..ad2227897e51 100644 --- a/php/php.project/src/org/netbeans/modules/php/project/connections/sync/SyncPanel.form +++ b/php/php.project/src/org/netbeans/modules/php/project/connections/sync/SyncPanel.form @@ -325,8 +325,8 @@ - - + + diff --git a/php/php.project/src/org/netbeans/modules/php/project/connections/sync/SyncPanel.java b/php/php.project/src/org/netbeans/modules/php/project/connections/sync/SyncPanel.java index 77fa8f0f2935..a9260f3a3e3c 100644 --- a/php/php.project/src/org/netbeans/modules/php/project/connections/sync/SyncPanel.java +++ b/php/php.project/src/org/netbeans/modules/php/project/connections/sync/SyncPanel.java @@ -1238,7 +1238,7 @@ private void initComponents() { .addGap(5, 5, 5)) ); - diffButton.setIcon(new ImageIcon(getClass().getResource("/org/netbeans/modules/php/project/ui/resources/diff.png"))); // NOI18N + diffButton.setIcon(ImageUtilities.loadIcon("org/netbeans/modules/php/project/ui/resources/diff.png")); diffButton.setEnabled(false); operationButtonsPanel.add(diffButton); diff --git a/webcommon/web.clientproject.api/src/org/netbeans/modules/web/clientproject/build/ui/AdvancedTasksPanel.form b/webcommon/web.clientproject.api/src/org/netbeans/modules/web/clientproject/build/ui/AdvancedTasksPanel.form index e6a6dc583ff1..fa4dbf3fb74d 100644 --- a/webcommon/web.clientproject.api/src/org/netbeans/modules/web/clientproject/build/ui/AdvancedTasksPanel.form +++ b/webcommon/web.clientproject.api/src/org/netbeans/modules/web/clientproject/build/ui/AdvancedTasksPanel.form @@ -131,8 +131,8 @@ - - + + @@ -144,8 +144,8 @@ - - + + @@ -157,8 +157,8 @@ - - + + @@ -170,8 +170,8 @@ - - + + diff --git a/webcommon/web.clientproject.api/src/org/netbeans/modules/web/clientproject/build/ui/AdvancedTasksPanel.java b/webcommon/web.clientproject.api/src/org/netbeans/modules/web/clientproject/build/ui/AdvancedTasksPanel.java index 3a9c9309a896..7f675c66ae91 100644 --- a/webcommon/web.clientproject.api/src/org/netbeans/modules/web/clientproject/build/ui/AdvancedTasksPanel.java +++ b/webcommon/web.clientproject.api/src/org/netbeans/modules/web/clientproject/build/ui/AdvancedTasksPanel.java @@ -35,7 +35,6 @@ import javax.swing.DefaultComboBoxModel; import javax.swing.DefaultListCellRenderer; import javax.swing.GroupLayout; -import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JComboBox; @@ -60,6 +59,7 @@ import org.openide.DialogDisplayer; import org.openide.NotifyDescriptor; import org.openide.awt.Mnemonics; +import org.openide.util.ImageUtilities; import org.openide.util.NbBundle; @@ -334,7 +334,7 @@ private void initComponents() { tasksList.setMinimumSize(new Dimension(60, 80)); tasksScrollPane.setViewportView(tasksList); - addButton.setIcon(new ImageIcon(getClass().getResource("/org/netbeans/modules/web/clientproject/ui/resources/add.png"))); // NOI18N + addButton.setIcon(ImageUtilities.loadIcon("org/netbeans/modules/web/clientproject/ui/resources/add.png")); addButton.setToolTipText(NbBundle.getMessage(AdvancedTasksPanel.class, "AdvancedTasksPanel.addButton.toolTipText")); // NOI18N addButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { @@ -342,7 +342,7 @@ public void actionPerformed(ActionEvent evt) { } }); - removeButton.setIcon(new ImageIcon(getClass().getResource("/org/netbeans/modules/web/clientproject/ui/resources/remove.png"))); // NOI18N + removeButton.setIcon(ImageUtilities.loadIcon("org/netbeans/modules/web/clientproject/ui/resources/remove.png")); removeButton.setToolTipText(NbBundle.getMessage(AdvancedTasksPanel.class, "AdvancedTasksPanel.removeButton.toolTipText")); // NOI18N removeButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { @@ -350,7 +350,7 @@ public void actionPerformed(ActionEvent evt) { } }); - upButton.setIcon(new ImageIcon(getClass().getResource("/org/netbeans/modules/web/clientproject/ui/resources/up.png"))); // NOI18N + upButton.setIcon(ImageUtilities.loadIcon("org/netbeans/modules/web/clientproject/ui/resources/up.png")); upButton.setToolTipText(NbBundle.getMessage(AdvancedTasksPanel.class, "AdvancedTasksPanel.upButton.toolTipText")); // NOI18N upButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { @@ -358,7 +358,7 @@ public void actionPerformed(ActionEvent evt) { } }); - downButton.setIcon(new ImageIcon(getClass().getResource("/org/netbeans/modules/web/clientproject/ui/resources/down.png"))); // NOI18N + downButton.setIcon(ImageUtilities.loadIcon("org/netbeans/modules/web/clientproject/ui/resources/down.png")); downButton.setToolTipText(NbBundle.getMessage(AdvancedTasksPanel.class, "AdvancedTasksPanel.downButton.toolTipText")); // NOI18N downButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) {