[Patchanim-commit] SF.net SVN: patchanim: [191] trunk/patchanim/src/com/mebigfatguy/patchanim/ gui
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2008-02-15 06:30:51
|
Revision: 191
http://patchanim.svn.sourceforge.net/patchanim/?rev=191&view=rev
Author: dbrosius
Date: 2008-02-14 22:30:52 -0800 (Thu, 14 Feb 2008)
Log Message:
-----------
use varargs for sizeUniformly
Modified Paths:
--------------
trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimPanel.java
trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchControlPanel.java
trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java
trunk/patchanim/src/com/mebigfatguy/patchanim/gui/Utils.java
Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimPanel.java
===================================================================
--- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimPanel.java 2008-02-15 06:22:04 UTC (rev 190)
+++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchAnimPanel.java 2008-02-15 06:30:52 UTC (rev 191)
@@ -58,7 +58,7 @@
JPanel listPanel = new JPatchListPanel();
p.add(listPanel, BorderLayout.WEST);
- Utils.sizeUniformly(new JComponent[] { ctrl, listPanel }, Utils.Sizing.Width);
+ Utils.sizeUniformly(Utils.Sizing.Width, ctrl, listPanel );
q = new JPanel();
{
Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchControlPanel.java
===================================================================
--- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchControlPanel.java 2008-02-15 06:22:04 UTC (rev 190)
+++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchControlPanel.java 2008-02-15 06:30:52 UTC (rev 191)
@@ -136,8 +136,8 @@
testButton.setToolTipText(rb.getString(PatchAnimBundle.TEST_TT));
add(testButton);
- Utils.sizeUniformly(new JComponent[] { widthLabel, heightLabel, animationLabel, outOfBoundsLabel, tweenFramesLabel }, Utils.Sizing.Both);
- Utils.sizeUniformly(new JComponent[] { widthField, heightField, animationCB, outOfBoundsColorCB, tweenFramesField }, Utils.Sizing.Width);
+ Utils.sizeUniformly(Utils.Sizing.Both, widthLabel, heightLabel, animationLabel, outOfBoundsLabel, tweenFramesLabel);
+ Utils.sizeUniformly(Utils.Sizing.Width, new JComponent[] { widthField, heightField, animationCB, outOfBoundsColorCB, tweenFramesField });
add(Box.createVerticalGlue());
Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java
===================================================================
--- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java 2008-02-15 06:22:04 UTC (rev 190)
+++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/JPatchListPanel.java 2008-02-15 06:30:52 UTC (rev 191)
@@ -82,7 +82,7 @@
addButton = new JButton(rb.getString(PatchAnimBundle.ADD));
removeButton = new JButton(rb.getString(PatchAnimBundle.REMOVE));
removeButton.setEnabled(false);
- Utils.sizeUniformly(new JComponent[] {addButton, removeButton}, Utils.Sizing.Both);
+ Utils.sizeUniformly(Utils.Sizing.Both, addButton, removeButton);
modCtrls.add(addButton);
modCtrls.add(Box.createHorizontalStrut(10));
modCtrls.add(removeButton);
@@ -94,7 +94,7 @@
downButton = new JButton(new ImageIcon(getClass().getResource(DOWNBUTTON)));
upButton.setEnabled(false);
downButton.setEnabled(false);
- Utils.sizeUniformly(new JComponent[] {upButton, downButton}, Utils.Sizing.Both);
+ Utils.sizeUniformly(Utils.Sizing.Both, new JComponent[] {upButton, downButton});
moveCtrls.setLayout(new BoxLayout(moveCtrls, BoxLayout.Y_AXIS));
moveCtrls.add(Box.createVerticalGlue());
moveCtrls.add(upButton);
Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/gui/Utils.java
===================================================================
--- trunk/patchanim/src/com/mebigfatguy/patchanim/gui/Utils.java 2008-02-15 06:22:04 UTC (rev 190)
+++ trunk/patchanim/src/com/mebigfatguy/patchanim/gui/Utils.java 2008-02-15 06:30:52 UTC (rev 191)
@@ -47,7 +47,7 @@
p.setMaximumSize(ms);
}
- public static void sizeUniformly(JComponent[] components, Sizing sizing) {
+ public static void sizeUniformly(Sizing sizing, JComponent... components) {
int width = 0;
int height = 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|