Thread: [Patchanim-commit] SF.net SVN: patchanim: [114] trunk/patchanim/src/com/mebigfatguy/patchanim/ gui/
Brought to you by:
dbrosius
From: <dbr...@us...> - 2008-02-09 06:12:53
|
Revision: 114 http://patchanim.svn.sourceforge.net/patchanim/?rev=114&view=rev Author: dbrosius Date: 2008-02-08 22:12:58 -0800 (Fri, 08 Feb 2008) Log Message: ----------- change error message to loading Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-09 06:08:36 UTC (rev 113) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-09 06:12:58 UTC (rev 114) @@ -296,7 +296,7 @@ } } catch (Exception e) { ResourceBundle rb = PatchAnimBundle.getBundle(); - JOptionPane.showMessageDialog(JPatchAnimFrame.this, rb.getString(PatchAnimBundle.SAVEFAILED)); + JOptionPane.showMessageDialog(JPatchAnimFrame.this, rb.getString(PatchAnimBundle.LOADFAILED)); documentLocation = null; document = new PatchAnimDocument(); } finally { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2008-02-09 16:01:42
|
Revision: 122 http://patchanim.svn.sourceforge.net/patchanim/?rev=122&view=rev Author: dbrosius Date: 2008-02-09 08:01:47 -0800 (Sat, 09 Feb 2008) Log Message: ----------- fire document changed on newItem Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-09 15:24:55 UTC (rev 121) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-09 16:01:47 UTC (rev 122) @@ -158,6 +158,8 @@ document = new PatchAnimDocument(); documentLocation = null; saveItem.setEnabled(false); + PatchPanelMediator mediator = PatchPanelMediator.getMediator(); + mediator.setDocument(document); } catch (IOException ioe) { ResourceBundle rb = PatchAnimBundle.getBundle(); JOptionPane.showMessageDialog(JPatchAnimFrame.this, rb.getString(PatchAnimBundle.SAVEFAILED)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2008-02-12 04:42:58
|
Revision: 169 http://patchanim.svn.sourceforge.net/patchanim/?rev=169&view=rev Author: dbrosius Date: 2008-02-11 20:43:01 -0800 (Mon, 11 Feb 2008) Log Message: ----------- don't close the window if canceled Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-12 04:24:08 UTC (rev 168) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-12 04:43:01 UTC (rev 169) @@ -35,6 +35,7 @@ import javax.swing.JMenuItem; import javax.swing.JOptionPane; import javax.swing.SwingUtilities; +import javax.swing.WindowConstants; import javax.swing.filechooser.FileFilter; import com.mebigfatguy.patchanim.ExportType; @@ -128,6 +129,7 @@ } private void initListeners() { + setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent we) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2008-02-12 21:27:10
|
Revision: 180 http://patchanim.svn.sourceforge.net/patchanim/?rev=180&view=rev Author: dbrosius Date: 2008-02-12 13:27:15 -0800 (Tue, 12 Feb 2008) Log Message: ----------- remove unused imports Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-12 20:18:48 UTC (rev 179) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-12 21:27:15 UTC (rev 180) @@ -22,7 +22,6 @@ import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; -import java.awt.event.FocusEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.awt.event.WindowFocusListener; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2008-02-15 06:21:13
|
Revision: 189 http://patchanim.svn.sourceforge.net/patchanim/?rev=189&view=rev Author: dbrosius Date: 2008-02-14 22:21:17 -0800 (Thu, 14 Feb 2008) Log Message: ----------- allow order 2 patches Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-14 07:46:25 UTC (rev 188) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-15 06:21:17 UTC (rev 189) @@ -187,7 +187,8 @@ rb.getString(PatchAnimBundle.TITLE), JOptionPane.QUESTION_MESSAGE, new ImageIcon(JPatchAnimFrame.this.getIconImage()), - new Object[] { Integer.valueOf(3), + new Object[] { Integer.valueOf(2), + Integer.valueOf(3), Integer.valueOf(4), Integer.valueOf(5), Integer.valueOf(6), This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2008-02-24 03:07:04
|
Revision: 229 http://patchanim.svn.sourceforge.net/patchanim/?rev=229&view=rev Author: dbrosius Date: 2008-02-23 19:07:09 -0800 (Sat, 23 Feb 2008) Log Message: ----------- show new dialog on start Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-24 02:52:12 UTC (rev 228) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-02-24 03:07:09 UTC (rev 229) @@ -185,21 +185,7 @@ } } - NewDocumentDialog newDialog = new NewDocumentDialog(); - newDialog.setModal(true); - newDialog.setLocationRelativeTo(JPatchAnimFrame.this); - newDialog.setVisible(true); - - int order = newDialog.getOrder(); - boolean useAlpha = newDialog.useAlpha(); - - document = new PatchAnimDocument(order, useAlpha); - documentLocation = null; - saveItem.setEnabled(false); - PatchPanelMediator mediator = PatchPanelMediator.getMediator(); - mediator.setDocument(document); - String title = MessageFormat.format(rb.getString(PatchAnimBundle.NAMEDTITLE), rb.getString(PatchAnimBundle.UNTITLED)); - setTitle(title); + newDocument(); } catch (IOException ioe) { JOptionPane.showMessageDialog(JPatchAnimFrame.this, rb.getString(PatchAnimBundle.SAVEFAILED)); } @@ -328,6 +314,31 @@ }); } + @Override + public void setVisible(boolean show) { + newDocument(); + super.setVisible(show); + } + + private void newDocument() { + ResourceBundle rb = PatchAnimBundle.getBundle(); + NewDocumentDialog newDialog = new NewDocumentDialog(); + newDialog.setModal(true); + newDialog.setLocationRelativeTo(JPatchAnimFrame.this); + newDialog.setVisible(true); + + int order = newDialog.getOrder(); + boolean useAlpha = newDialog.useAlpha(); + + document = new PatchAnimDocument(order, useAlpha); + documentLocation = null; + saveItem.setEnabled(false); + PatchPanelMediator mediator = PatchPanelMediator.getMediator(); + mediator.setDocument(document); + String title = MessageFormat.format(rb.getString(PatchAnimBundle.NAMEDTITLE), rb.getString(PatchAnimBundle.UNTITLED)); + setTitle(title); + } + private void load() { try { JFileChooser chooser = new JFileChooser(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2008-06-07 22:51:13
|
Revision: 246 http://patchanim.svn.sourceforge.net/patchanim/?rev=246&view=rev Author: dbrosius Date: 2008-06-07 15:51:14 -0700 (Sat, 07 Jun 2008) Log Message: ----------- be specific about the exceptions being caught Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-06-07 22:49:56 UTC (rev 245) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimFrame.java 2008-06-07 22:51:14 UTC (rev 246) @@ -350,7 +350,7 @@ documentLocation = chooser.getSelectedFile(); document = PatchAnimIO.loadFile(documentLocation); } - } catch (Exception e) { + } catch (IOException e) { ResourceBundle rb = PatchAnimBundle.getBundle(); JOptionPane.showMessageDialog(JPatchAnimFrame.this, rb.getString(PatchAnimBundle.LOADFAILED)); documentLocation = null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |