[Pixelle-commit] SF.net SVN: pixelle: [99] trunk/pixelle/src/com/mebigfatguy/pixelle/ PixelleFrame.
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-06-28 21:45:20
|
Revision: 99
http://pixelle.svn.sourceforge.net/pixelle/?rev=99&view=rev
Author: dbrosius
Date: 2008-06-28 14:45:21 -0700 (Sat, 28 Jun 2008)
Log Message:
-----------
add checkbox
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 2008-06-28 21:41:26 UTC (rev 98)
+++ trunk/pixelle/src/com/mebigfatguy/pixelle/PixelleFrame.java 2008-06-28 21:45:21 UTC (rev 99)
@@ -50,13 +50,14 @@
import com.mebigfatguy.pixelle.actions.SaveFileAction;
import com.mebigfatguy.pixelle.actions.SaveFileAsAction;
import com.mebigfatguy.pixelle.actions.TransformAction;
+import com.mebigfatguy.pixelle.actions.TransformNewWindowAction;
import com.mebigfatguy.pixelle.actions.ZoomAction;
import com.mebigfatguy.pixelle.utils.GuiUtils;
import com.mebigfatguy.pixelle.utils.ZoomLevel;
public class PixelleFrame extends JFrame {
- private static final long serialVersionUID = 6867461092986841877L;
-
+ private static final long serialVersionUID = 3252160042874627103L;
+
JMenu fileMenu;
JMenuItem newItem;
JMenuItem openItem;
@@ -79,6 +80,7 @@
JMenu transformMenu;
JMenuItem optionsItem;
+ JCheckBoxMenuItem transformNewWindowItem;
JMenuItem transformItem;
ResourceBundle rb = ResourceBundle.getBundle("com.mebigfatguy.pixelle.pixelle");
@@ -90,12 +92,16 @@
image = new PixelleImage();
initComponents();
initListeners();
+
setTitle(rb.getString("pixelle.title"));
}
public PixelleFrame(PixelleImage srcImage) {
- this();
image = srcImage;
+ initComponents();
+ initListeners();
+
+ setTitle(rb.getString("pixelle.title"));
Container cp = getContentPane();
cp.removeAll();
setZoom(ZoomLevel.FitToWindow);
@@ -168,6 +174,10 @@
transformMenu = new JMenu(rb.getString(PixelleBundle.TRANSFORM_MENU));
optionsItem = new JMenuItem(new OptionsAction(this));
transformMenu.add(optionsItem);
+ transformNewWindowItem = new JCheckBoxMenuItem(new TransformNewWindowAction(this));
+ transformNewWindowItem.setSelected(true);
+ transformMenu.add(transformNewWindowItem);
+ transformMenu.addSeparator();
transformItem = new JMenuItem(new TransformAction(this));
transformMenu.add(transformItem);
@@ -206,6 +216,7 @@
setZoom(ZoomLevel.FitToWindow);
scroll = new JScrollPane(panel);
cp.add(scroll, BorderLayout.CENTER);
+ transformNewWindowItem.setSelected(true);
invalidate();
validate();
repaint();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|