[Pixelle-commit] SF.net SVN: pixelle: [138] trunk/pixelle/src/com/mebigfatguy/pixelle
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-07-04 18:58:13
|
Revision: 138
http://pixelle.svn.sourceforge.net/pixelle/?rev=138&view=rev
Author: dbrosius
Date: 2008-07-04 11:58:12 -0700 (Fri, 04 Jul 2008)
Log Message:
-----------
fix title for transformed windows, and set create new window to false on unnamed windows.
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java
trunk/pixelle/src/com/mebigfatguy/pixelle/actions/TransformAction.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java 2008-07-04 18:54:50 UTC (rev 137)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java 2008-07-04 18:58:12 UTC (rev 138)
@@ -91,7 +91,7 @@
boolean doNewWindow;
public PixelleFrame() throws PixelleTransformException {
- this(new PixelleTransformer(new PixelleImage(), PixelleTransformer.getSampleTransform()).transform());
+ this(new PixelleTransformer(new PixelleImage(), PixelleTransformer.getSampleTransform()).transform(), false);
}
public PixelleFrame(PixelleImage srcImage) {
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/actions/TransformAction.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/actions/TransformAction.java 2008-07-04 18:54:50 UTC (rev 137)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/actions/TransformAction.java 2008-07-04 18:58:12 UTC (rev 138)
@@ -19,6 +19,7 @@
package com.mebigfatguy.pixelle.actions;
import java.awt.event.ActionEvent;
+import java.text.MessageFormat;
import javax.swing.AbstractAction;
import javax.swing.JOptionPane;
@@ -54,6 +55,8 @@
if (dstImage != null) {
if (frame.createNewWindow()) {
PixelleFrame f = new PixelleFrame(dstImage);
+ String title = MessageFormat.format(PixelleBundle.getString(PixelleBundle.TITLE), PixelleBundle.getString(PixelleBundle.UNKNOWN));
+ f.setTitle(title);
f.setVisible(true);
} else
frame.setImage(dstImage);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|