Thread: [Patchanim-commit] SF.net SVN: patchanim: [106] trunk/patchanim/src/com/mebigfatguy/patchanim/ gui/
Brought to you by:
dbrosius
From: <dbr...@us...> - 2008-02-08 05:44:52
|
Revision: 106 http://patchanim.svn.sourceforge.net/patchanim/?rev=106&view=rev Author: dbrosius Date: 2008-02-07 21:44:45 -0800 (Thu, 07 Feb 2008) Log Message: ----------- BAS fix Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java 2008-02-08 05:39:50 UTC (rev 105) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java 2008-02-08 05:44:45 UTC (rev 106) @@ -201,10 +201,10 @@ patchList.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent me) { - ResourceBundle rb = PatchAnimBundle.getBundle(); if (me.getClickCount() == 2) { CombinedPatch patch = (CombinedPatch)patchList.getSelectedValue(); if (patch != null) { + ResourceBundle rb = PatchAnimBundle.getBundle(); String newName = JOptionPane.showInputDialog(JPatchListPanel.this, rb.getString(PatchAnimBundle.ENTERNEWPATCHNAME), patch.getName()); if (newName != null) { patch.setName(newName); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2008-02-10 05:34:03
|
Revision: 133 http://patchanim.svn.sourceforge.net/patchanim/?rev=133&view=rev Author: dbrosius Date: 2008-02-09 21:34:06 -0800 (Sat, 09 Feb 2008) Log Message: ----------- enable the remove button when clone occurs Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java 2008-02-10 05:32:10 UTC (rev 132) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java 2008-02-10 05:34:06 UTC (rev 133) @@ -245,6 +245,7 @@ CombinedPatch newPatch = (CombinedPatch)patch.clone(); patchListModel.add(selIndex + 1, newPatch); patchList.setSelectedIndex(selIndex + 1); + removeButton.setEnabled(true); } }); patchMenu.add(cloneItem); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2008-02-18 07:40:50
|
Revision: 210 http://patchanim.svn.sourceforge.net/patchanim/?rev=210&view=rev Author: dbrosius Date: 2008-02-17 23:40:54 -0800 (Sun, 17 Feb 2008) Log Message: ----------- enable remove button on load, if mulitple patches Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java 2008-02-18 07:40:16 UTC (rev 209) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java 2008-02-18 07:40:54 UTC (rev 210) @@ -112,11 +112,13 @@ public void documentChanged(final DocumentChangedEvent dce) { SwingUtilities.invokeLater(new Runnable() { public void run() { - patchList.setSelectedIndex(0); patchListModel = new PatchListModel(dce.getDocument()); patchList.setModel(patchListModel); + patchList.setSelectedIndex(0); mediator.setNewActivePatch((CombinedPatch)patchListModel.getElementAt(0)); enabledMovementCtrls(); + removeButton.setEnabled(patchListModel.getSize() > 1); + } }); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <dbr...@us...> - 2008-06-07 23:35:39
|
Revision: 245 http://patchanim.svn.sourceforge.net/patchanim/?rev=245&view=rev Author: dbrosius Date: 2008-06-07 15:49:56 -0700 (Sat, 07 Jun 2008) Log Message: ----------- PRMC fix Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java 2008-06-07 22:48:31 UTC (rev 244) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java 2008-06-07 22:49:56 UTC (rev 245) @@ -90,8 +90,9 @@ add(modCtrls, BorderLayout.SOUTH); JPanel moveCtrls = new JPanel(); - upButton = new JButton(new ImageIcon(getClass().getResource(UPBUTTON))); - downButton = new JButton(new ImageIcon(getClass().getResource(DOWNBUTTON))); + Class<?> panelClass = getClass(); + upButton = new JButton(new ImageIcon(panelClass.getResource(UPBUTTON))); + downButton = new JButton(new ImageIcon(panelClass.getResource(DOWNBUTTON))); upButton.setEnabled(false); downButton.setEnabled(false); Utils.sizeUniformly(Utils.Sizing.Both, new JComponent[] {upButton, downButton}); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |