Permalink
Browse files

Move the icons to a subfolder.

  • Loading branch information...
1 parent 3a8e7ac commit d777448f1fe8afda53ef85b44d7133609687190d @mjuhasz committed Nov 25, 2012
View
@@ -133,7 +133,7 @@
</mapper>
</data>
<data>
- <src>${project.basedir}/src/main/resources/icon_128.png</src>
+ <src>${project.basedir}/src/main/resources/icons/bdsup2sub_128.png</src>
<dst>bdsup2sub.png</dst>
<type>file</type>
<mapper>
@@ -160,7 +160,7 @@
<mainClass>bdsup2sub.BDSup2Sub</mainClass>
<jvmVersion>1.6+</jvmVersion>
<javaApplicationStub>${basedir}/src/main/resources/JavaApplicationStub</javaApplicationStub>
- <iconFile>${project.basedir}/src/main/resources/bdsup2sub.icns</iconFile>
+ <iconFile>${project.basedir}/src/main/resources/icons/bdsup2sub.icns</iconFile>
<bundleName>BDSup2Sub</bundleName>
</configuration>
</execution>
@@ -687,7 +687,7 @@ private void showAboutDialog() {
+ "Copyright © 2009 Volker Oth, 2011-2012 Miklos Juhasz",
Constants.APP_NAME,
JOptionPane.INFORMATION_MESSAGE,
- new ImageIcon(getClass().getClassLoader().getResource("icon_32.png")));
+ new ImageIcon(getClass().getClassLoader().getResource("icons/bdsup2sub_32.png")));
}
private class SubNumComboBoxActionListener implements ActionListener {
@@ -1176,11 +1176,11 @@ public void run() {
private class CopyPopupMenuItemActionListener implements ActionListener {
@Override
public void actionPerformed(ActionEvent event) {
- String s = view.getConsoleSelectedText();
+ String selectedText = view.getConsoleSelectedText();
try {
- if ( s!= null) {
+ if (selectedText != null) {
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(""), view);
- Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(s), view);
+ Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new StringSelection(selectedText), view);
}
} catch (OutOfMemoryError ex) {
JOptionPane.showMessageDialog(view, "Out of heap! Use -Xmx256m to increase heap!" , "Error!", JOptionPane.WARNING_MESSAGE);
@@ -1264,7 +1264,7 @@ private void handle(ApplicationEvent event, String message) {
message,
Constants.APP_NAME,
JOptionPane.INFORMATION_MESSAGE,
- new ImageIcon(getClass().getClassLoader().getResource("icon_32.png")));
+ new ImageIcon(getClass().getClassLoader().getResource("icons/bdsup2sub_32.png")));
}
public void handleAbout(ApplicationEvent event) {
@@ -115,7 +115,7 @@ private void initialize() {
initAlphaThresholdComboBoxSelectedIndices();
updateRecentFilesMenu();
- setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getClassLoader().getResource("icon_32.png")));
+ setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getClassLoader().getResource("icons/bdsup2sub_32.png")));
setLocation();
}

0 comments on commit d777448

Please sign in to comment.