[Patchanim-commit] SF.net SVN: patchanim: [181] trunk/patchanim
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-02-14 04:58:29
|
Revision: 181
http://patchanim.svn.sourceforge.net/patchanim/?rev=181&view=rev
Author: dbrosius
Date: 2008-02-13 20:58:33 -0800 (Wed, 13 Feb 2008)
Log Message:
-----------
add a custom JFrame icon
Modified Paths:
--------------
trunk/patchanim/build.xml
trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java
Added Paths:
-----------
trunk/patchanim/src/com/mebigfatguy/patchanim/gui/patchanimicon.jpg
Modified: trunk/patchanim/build.xml
===================================================================
--- trunk/patchanim/build.xml 2008-02-12 21:27:15 UTC (rev 180)
+++ trunk/patchanim/build.xml 2008-02-14 04:58:33 UTC (rev 181)
@@ -80,6 +80,7 @@
<include name="**/*.gif"/>
<include name="**/*.xsd"/>
<include name="**/*.xsl"/>
+ <include name="**/*.jpg"/>
</fileset>
</copy>
<echo message="${patchanim.version}" file="${classes.dir}/com/mebigfatguy/patchanim/io/Version.txt"/>
@@ -106,6 +107,7 @@
<include name="**/*.xsd"/>
<include name="**/*.xsl"/>
<include name="**/*.txt"/>
+ <include name="**/*.jpg"/>
</fileset>
<fileset dir="${basedir}">
<include name="license.txt"/>
Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java
===================================================================
--- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-12 21:27:15 UTC (rev 180)
+++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-14 04:58:33 UTC (rev 181)
@@ -29,6 +29,7 @@
import java.io.IOException;
import java.util.ResourceBundle;
+import javax.swing.ImageIcon;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JMenu;
@@ -52,6 +53,7 @@
public class JPatchAnimFrame extends JFrame {
private static final long serialVersionUID = -4610407923936772733L;
+ private static final String ICON_URL = "/com/mebigfatguy/patchanim/gui/patchanimicon.jpg";
private JMenuItem newItem;
private JMenuItem openItem;
@@ -87,6 +89,8 @@
cp.add(patchPanel, BorderLayout.CENTER);
setTitle(rb.getString(PatchAnimBundle.TITLE));
+
+ setIconImage(new ImageIcon(JPatchAnimFrame.class.getResource(ICON_URL)).getImage());
pack();
}
Added: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/patchanimicon.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/patchanimicon.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|