[Patchanim-commit] SF.net SVN: patchanim: [245] trunk/patchanim/src/com/mebigfatguy/patchanim/ gui/
Brought to you by:
dbrosius
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. |