[Pixelle-commit] SF.net SVN: pixelle:[239] trunk/pixelle/src/com/mebigfatguy/pixelle/ PixelleFrame.
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2009-02-17 06:14:31
|
Revision: 239
http://pixelle.svn.sourceforge.net/pixelle/?rev=239&view=rev
Author: dbrosius
Date: 2009-02-17 06:14:27 +0000 (Tue, 17 Feb 2009)
Log Message:
-----------
number the windows that are created for uniqueness
Modified Paths:
--------------
trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java
Modified: trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java
===================================================================
--- trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java 2009-02-17 06:10:05 UTC (rev 238)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java 2009-02-17 06:14:27 UTC (rev 239)
@@ -66,6 +66,7 @@
public class PixelleFrame extends JFrame {
private static final long serialVersionUID = -2993532609001467136L;
+ private static int pixelleFrameCount = 1;
JMenu fileMenu;
JMenuItem newItem;
@@ -101,6 +102,7 @@
transient PixelleImage image;
PixelInspector inspector;
boolean doNewWindow;
+ int pixelleFrameId;
public PixelleFrame() throws PixelleTransformException {
this(new PixelleTransformer(new PixelleImage[] {new PixelleImage()}, PixelleTransformer.getSampleTransform(), ImageType.RGB, new Point(400, 400)).transform(), false);
@@ -111,6 +113,7 @@
}
private PixelleFrame(PixelleImage srcImage, boolean transformInNewWindow) {
+ pixelleFrameId = pixelleFrameCount++;
imageFile = null;
image = srcImage;
doNewWindow = transformInNewWindow;
@@ -304,7 +307,7 @@
else
title = imageFile.getName();
- return title;
+ return title + " [" + pixelleFrameId + "]";
}
public class ImagePanel extends JPanel {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|