harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r541469 [2/2] - in /harmony/enhanced/classlib/trunk/modules/swing/src: main/java/common/javax/swing/ main/java/common/javax/swing/plaf/multi/ main/java/common/org/apache/harmony/x/swing/internal/nls/ test/api/java.injected/javax/swing/ test...
Date Thu, 24 May 2007 23:05:42 GMT
Added: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSeparatorUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSeparatorUI.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSeparatorUI.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSeparatorUI.java Thu May 24 16:05:37 2007
@@ -0,0 +1,111 @@
+package javax.swing.plaf.multi;
+
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.util.Vector;
+
+import javax.accessibility.Accessible;
+import javax.swing.JComponent;
+import javax.swing.plaf.ComponentUI;
+import javax.swing.plaf.SeparatorUI;
+
+/**
+ * All the methods described in public api
+ */
+public class MultiSeparatorUI extends SeparatorUI {
+
+	protected Vector uis = new Vector();
+
+	/**
+	 * Used in cycles. numberOfUIs = Correct number of UIs + 1, but the variable
+	 * used in that sence
+	 */
+	private int numberOfUIs;
+
+	public static ComponentUI createUI(JComponent a) {
+		MultiSeparatorUI mui = new MultiSeparatorUI();
+		ComponentUI result = MultiLookAndFeel.createUIs(mui, mui.uis, a);
+		mui.numberOfUIs = mui.uis.size();
+		return result;
+	}
+
+	@Override
+	public boolean contains(JComponent a, int b, int c) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).contains(a, b, c);
+		}
+		return ((ComponentUI) uis.firstElement()).contains(a, b, c);
+	}
+
+	@Override
+	public Accessible getAccessibleChild(JComponent a, int b) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChild(a, b);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChild(a, b);
+	}
+
+	@Override
+	public int getAccessibleChildrenCount(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChildrenCount(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChildrenCount(a);
+	}
+
+	@Override
+	public Dimension getMaximumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMaximumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMaximumSize(a);
+	}
+
+	@Override
+	public Dimension getMinimumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMinimumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMinimumSize(a);
+	}
+
+	@Override
+	public Dimension getPreferredSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getPreferredSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getPreferredSize(a);
+	}
+
+	public ComponentUI[] getUIs() {
+		return MultiLookAndFeel.uisToArray(uis);
+	}
+
+	@Override
+	public void installUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).installUI(a);
+		}
+	}
+
+	@Override
+	public void paint(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).paint(a, b);
+		}
+	}
+
+	@Override
+	public void uninstallUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).uninstallUI(a);
+		}
+	}
+
+	@Override
+	public void update(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).update(a, b);
+		}
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSeparatorUI.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSliderUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSliderUI.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSliderUI.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSliderUI.java Thu May 24 16:05:37 2007
@@ -0,0 +1,111 @@
+package javax.swing.plaf.multi;
+
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.util.Vector;
+
+import javax.accessibility.Accessible;
+import javax.swing.JComponent;
+import javax.swing.plaf.ComponentUI;
+import javax.swing.plaf.SliderUI;
+
+/**
+ * All the methods described in public api
+ */
+public class MultiSliderUI extends SliderUI {
+
+	protected Vector uis = new Vector();
+
+	/**
+	 * Used in cycles. numberOfUIs = Correct number of UIs + 1, but the variable
+	 * used in that sence
+	 */
+	private int numberOfUIs;
+
+	public static ComponentUI createUI(JComponent a) {
+		MultiSliderUI mui = new MultiSliderUI();
+		ComponentUI result = MultiLookAndFeel.createUIs(mui, mui.uis, a);
+		mui.numberOfUIs = mui.uis.size();
+		return result;
+	}
+
+	@Override
+	public boolean contains(JComponent a, int b, int c) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).contains(a, b, c);
+		}
+		return ((ComponentUI) uis.firstElement()).contains(a, b, c);
+	}
+
+	@Override
+	public Accessible getAccessibleChild(JComponent a, int b) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChild(a, b);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChild(a, b);
+	}
+
+	@Override
+	public int getAccessibleChildrenCount(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChildrenCount(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChildrenCount(a);
+	}
+
+	@Override
+	public Dimension getMaximumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMaximumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMaximumSize(a);
+	}
+
+	@Override
+	public Dimension getMinimumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMinimumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMinimumSize(a);
+	}
+
+	@Override
+	public Dimension getPreferredSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getPreferredSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getPreferredSize(a);
+	}
+
+	public ComponentUI[] getUIs() {
+		return MultiLookAndFeel.uisToArray(uis);
+	}
+
+	@Override
+	public void installUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).installUI(a);
+		}
+	}
+
+	@Override
+	public void paint(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).paint(a, b);
+		}
+	}
+
+	@Override
+	public void uninstallUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).uninstallUI(a);
+		}
+	}
+
+	@Override
+	public void update(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).update(a, b);
+		}
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSliderUI.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSpinnerUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSpinnerUI.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSpinnerUI.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSpinnerUI.java Thu May 24 16:05:37 2007
@@ -0,0 +1,111 @@
+package javax.swing.plaf.multi;
+
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.util.Vector;
+
+import javax.accessibility.Accessible;
+import javax.swing.JComponent;
+import javax.swing.plaf.ComponentUI;
+import javax.swing.plaf.SpinnerUI;
+
+/**
+ * All the methods described in public api
+ */
+public class MultiSpinnerUI extends SpinnerUI {
+
+	protected Vector uis = new Vector();
+
+	/**
+	 * Used in cycles. numberOfUIs = Correct number of UIs + 1, but the variable
+	 * used in that sence
+	 */
+	private int numberOfUIs;
+
+	public static ComponentUI createUI(JComponent a) {
+		MultiSpinnerUI mui = new MultiSpinnerUI();
+		ComponentUI result = MultiLookAndFeel.createUIs(mui, mui.uis, a);
+		mui.numberOfUIs = mui.uis.size();
+		return result;
+	}
+
+	@Override
+	public boolean contains(JComponent a, int b, int c) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).contains(a, b, c);
+		}
+		return ((ComponentUI) uis.firstElement()).contains(a, b, c);
+	}
+
+	@Override
+	public Accessible getAccessibleChild(JComponent a, int b) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChild(a, b);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChild(a, b);
+	}
+
+	@Override
+	public int getAccessibleChildrenCount(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChildrenCount(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChildrenCount(a);
+	}
+
+	@Override
+	public Dimension getMaximumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMaximumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMaximumSize(a);
+	}
+
+	@Override
+	public Dimension getMinimumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMinimumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMinimumSize(a);
+	}
+
+	@Override
+	public Dimension getPreferredSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getPreferredSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getPreferredSize(a);
+	}
+
+	public ComponentUI[] getUIs() {
+		return MultiLookAndFeel.uisToArray(uis);
+	}
+
+	@Override
+	public void installUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).installUI(a);
+		}
+	}
+
+	@Override
+	public void paint(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).paint(a, b);
+		}
+	}
+
+	@Override
+	public void uninstallUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).uninstallUI(a);
+		}
+	}
+
+	@Override
+	public void update(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).update(a, b);
+		}
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSpinnerUI.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSplitPaneUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSplitPaneUI.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSplitPaneUI.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSplitPaneUI.java Thu May 24 16:05:37 2007
@@ -0,0 +1,157 @@
+package javax.swing.plaf.multi;
+
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.util.Vector;
+
+import javax.accessibility.Accessible;
+import javax.swing.JComponent;
+import javax.swing.JSplitPane;
+import javax.swing.plaf.ComponentUI;
+import javax.swing.plaf.SplitPaneUI;
+
+/**
+ * All the methods described in public api
+ */
+public class MultiSplitPaneUI extends SplitPaneUI {
+
+	protected Vector uis = new Vector();
+
+	/**
+	 * Used in cycles. numberOfUIs = Correct number of UIs + 1, but the variable
+	 * used in that sence
+	 */
+	private int numberOfUIs;
+
+	public static ComponentUI createUI(JComponent a) {
+		MultiSplitPaneUI mui = new MultiSplitPaneUI();
+		ComponentUI result = MultiLookAndFeel.createUIs(mui, mui.uis, a);
+		mui.numberOfUIs = mui.uis.size();
+		return result;
+	}
+
+	@Override
+	public boolean contains(JComponent a, int b, int c) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).contains(a, b, c);
+		}
+		return ((ComponentUI) uis.firstElement()).contains(a, b, c);
+	}
+
+	@Override
+	public Accessible getAccessibleChild(JComponent a, int b) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChild(a, b);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChild(a, b);
+	}
+
+	@Override
+	public int getAccessibleChildrenCount(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChildrenCount(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChildrenCount(a);
+	}
+
+	@Override
+	public Dimension getMaximumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMaximumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMaximumSize(a);
+	}
+
+	@Override
+	public Dimension getMinimumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMinimumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMinimumSize(a);
+	}
+
+	@Override
+	public Dimension getPreferredSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getPreferredSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getPreferredSize(a);
+	}
+
+	public ComponentUI[] getUIs() {
+		return MultiLookAndFeel.uisToArray(uis);
+	}
+
+	@Override
+	public void installUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).installUI(a);
+		}
+	}
+
+	@Override
+	public void paint(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).paint(a, b);
+		}
+	}
+
+	@Override
+	public void uninstallUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).uninstallUI(a);
+		}
+	}
+
+	@Override
+	public void update(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).update(a, b);
+		}
+	}
+
+	@Override
+	public void resetToPreferredSizes(JSplitPane jc) {
+		for (Object ui : uis) {
+			((SplitPaneUI) ui).resetToPreferredSizes(jc);
+		}
+	}
+
+	@Override
+	public void setDividerLocation(JSplitPane jc, int location) {
+		for (Object ui : uis) {
+			((SplitPaneUI) ui).setDividerLocation(jc, location);
+		}
+	}
+
+	@Override
+	public int getDividerLocation(JSplitPane jc) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((SplitPaneUI) uis.get(i)).getDividerLocation(jc);
+		}
+		return ((SplitPaneUI) uis.firstElement()).getDividerLocation(jc);
+	}
+
+	@Override
+	public int getMinimumDividerLocation(JSplitPane jc) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((SplitPaneUI) uis.get(i)).getMinimumDividerLocation(jc);
+		}
+		return ((SplitPaneUI) uis.firstElement()).getMinimumDividerLocation(jc);
+	}
+
+	@Override
+	public int getMaximumDividerLocation(JSplitPane jc) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((SplitPaneUI) uis.get(i)).getMaximumDividerLocation(jc);
+		}
+		return ((SplitPaneUI) uis.firstElement()).getMaximumDividerLocation(jc);
+	}
+
+	@Override
+	public void finishedPaintingChildren(JSplitPane jc, Graphics g) {
+		for (Object ui : uis) {
+			((SplitPaneUI) ui).finishedPaintingChildren(jc, g);
+		}
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiSplitPaneUI.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTabbedPaneUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTabbedPaneUI.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTabbedPaneUI.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTabbedPaneUI.java Thu May 24 16:05:37 2007
@@ -0,0 +1,137 @@
+package javax.swing.plaf.multi;
+
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.awt.Rectangle;
+import java.util.Vector;
+
+import javax.accessibility.Accessible;
+import javax.swing.JComponent;
+import javax.swing.JTabbedPane;
+import javax.swing.plaf.ComponentUI;
+import javax.swing.plaf.TabbedPaneUI;
+
+/**
+ * All the methods described in public api
+ */
+public class MultiTabbedPaneUI extends TabbedPaneUI {
+
+	protected Vector uis = new Vector();
+
+	/**
+	 * Used in cycles. numberOfUIs = Correct number of UIs + 1, but the variable
+	 * used in that sence
+	 */
+	private int numberOfUIs;
+
+	public static ComponentUI createUI(JComponent a) {
+		MultiTabbedPaneUI mui = new MultiTabbedPaneUI();
+		ComponentUI result = MultiLookAndFeel.createUIs(mui, mui.uis, a);
+		mui.numberOfUIs = mui.uis.size();
+		return result;
+	}
+
+	@Override
+	public boolean contains(JComponent a, int b, int c) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).contains(a, b, c);
+		}
+		return ((ComponentUI) uis.firstElement()).contains(a, b, c);
+	}
+
+	@Override
+	public Accessible getAccessibleChild(JComponent a, int b) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChild(a, b);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChild(a, b);
+	}
+
+	@Override
+	public int getAccessibleChildrenCount(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChildrenCount(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChildrenCount(a);
+	}
+
+	@Override
+	public Dimension getMaximumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMaximumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMaximumSize(a);
+	}
+
+	@Override
+	public Dimension getMinimumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMinimumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMinimumSize(a);
+	}
+
+	@Override
+	public Dimension getPreferredSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getPreferredSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getPreferredSize(a);
+	}
+
+	public ComponentUI[] getUIs() {
+		return MultiLookAndFeel.uisToArray(uis);
+	}
+
+	@Override
+	public void installUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).installUI(a);
+		}
+	}
+
+	@Override
+	public void paint(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).paint(a, b);
+		}
+	}
+
+	@Override
+	public void uninstallUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).uninstallUI(a);
+		}
+	}
+
+	@Override
+	public void update(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).update(a, b);
+		}
+	}
+
+	@Override
+	public int tabForCoordinate(JTabbedPane pane, int x, int y) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TabbedPaneUI) uis.get(i)).tabForCoordinate(pane, x, y);
+		}
+		return ((TabbedPaneUI) uis.firstElement()).tabForCoordinate(pane, x, y);
+	}
+
+	@Override
+	public Rectangle getTabBounds(JTabbedPane pane, int index) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TabbedPaneUI) uis.get(i)).getTabBounds(pane, index);
+		}
+		return ((TabbedPaneUI) uis.firstElement()).getTabBounds(pane, index);
+	}
+
+	@Override
+	public int getTabRunCount(JTabbedPane pane) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TabbedPaneUI) uis.get(i)).getTabRunCount(pane);
+		}
+		return ((TabbedPaneUI) uis.firstElement()).getTabRunCount(pane);
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTabbedPaneUI.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTableHeaderUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTableHeaderUI.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTableHeaderUI.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTableHeaderUI.java Thu May 24 16:05:37 2007
@@ -0,0 +1,111 @@
+package javax.swing.plaf.multi;
+
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.util.Vector;
+
+import javax.accessibility.Accessible;
+import javax.swing.JComponent;
+import javax.swing.plaf.ComponentUI;
+import javax.swing.plaf.TableHeaderUI;
+
+/**
+ * All the methods described in public api
+ */
+public class MultiTableHeaderUI extends TableHeaderUI {
+
+	protected Vector uis = new Vector();
+
+	/**
+	 * Used in cycles. numberOfUIs = Correct number of UIs + 1, but the variable
+	 * used in that sence
+	 */
+	private int numberOfUIs;
+
+	public static ComponentUI createUI(JComponent a) {
+		MultiTableHeaderUI mui = new MultiTableHeaderUI();
+		ComponentUI result = MultiLookAndFeel.createUIs(mui, mui.uis, a);
+		mui.numberOfUIs = mui.uis.size();
+		return result;
+	}
+
+	@Override
+	public boolean contains(JComponent a, int b, int c) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).contains(a, b, c);
+		}
+		return ((ComponentUI) uis.firstElement()).contains(a, b, c);
+	}
+
+	@Override
+	public Accessible getAccessibleChild(JComponent a, int b) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChild(a, b);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChild(a, b);
+	}
+
+	@Override
+	public int getAccessibleChildrenCount(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChildrenCount(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChildrenCount(a);
+	}
+
+	@Override
+	public Dimension getMaximumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMaximumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMaximumSize(a);
+	}
+
+	@Override
+	public Dimension getMinimumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMinimumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMinimumSize(a);
+	}
+
+	@Override
+	public Dimension getPreferredSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getPreferredSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getPreferredSize(a);
+	}
+
+	public ComponentUI[] getUIs() {
+		return MultiLookAndFeel.uisToArray(uis);
+	}
+
+	@Override
+	public void installUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).installUI(a);
+		}
+	}
+
+	@Override
+	public void paint(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).paint(a, b);
+		}
+	}
+
+	@Override
+	public void uninstallUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).uninstallUI(a);
+		}
+	}
+
+	@Override
+	public void update(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).update(a, b);
+		}
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTableHeaderUI.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTableUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTableUI.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTableUI.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTableUI.java Thu May 24 16:05:37 2007
@@ -0,0 +1,111 @@
+package javax.swing.plaf.multi;
+
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.util.Vector;
+
+import javax.accessibility.Accessible;
+import javax.swing.JComponent;
+import javax.swing.plaf.ComponentUI;
+import javax.swing.plaf.TableUI;
+
+/**
+ * All the methods described in public api
+ */
+public class MultiTableUI extends TableUI {
+
+	protected Vector uis = new Vector();
+
+	/**
+	 * Used in cycles. numberOfUIs = Correct number of UIs + 1, but the variable
+	 * used in that sence
+	 */
+	private int numberOfUIs;
+
+	public static ComponentUI createUI(JComponent a) {
+		MultiTableUI mui = new MultiTableUI();
+		ComponentUI result = MultiLookAndFeel.createUIs(mui, mui.uis, a);
+		mui.numberOfUIs = mui.uis.size();
+		return result;
+	}
+
+	@Override
+	public boolean contains(JComponent a, int b, int c) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).contains(a, b, c);
+		}
+		return ((ComponentUI) uis.firstElement()).contains(a, b, c);
+	}
+
+	@Override
+	public Accessible getAccessibleChild(JComponent a, int b) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChild(a, b);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChild(a, b);
+	}
+
+	@Override
+	public int getAccessibleChildrenCount(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChildrenCount(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChildrenCount(a);
+	}
+
+	@Override
+	public Dimension getMaximumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMaximumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMaximumSize(a);
+	}
+
+	@Override
+	public Dimension getMinimumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMinimumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMinimumSize(a);
+	}
+
+	@Override
+	public Dimension getPreferredSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getPreferredSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getPreferredSize(a);
+	}
+
+	public ComponentUI[] getUIs() {
+		return MultiLookAndFeel.uisToArray(uis);
+	}
+
+	@Override
+	public void installUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).installUI(a);
+		}
+	}
+
+	@Override
+	public void paint(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).paint(a, b);
+		}
+	}
+
+	@Override
+	public void uninstallUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).uninstallUI(a);
+		}
+	}
+
+	@Override
+	public void update(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).update(a, b);
+		}
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTableUI.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTextUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTextUI.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTextUI.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTextUI.java Thu May 24 16:05:37 2007
@@ -0,0 +1,200 @@
+package javax.swing.plaf.multi;
+
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.awt.Point;
+import java.awt.Rectangle;
+import java.util.Vector;
+
+import javax.accessibility.Accessible;
+import javax.swing.JComponent;
+import javax.swing.plaf.ComponentUI;
+import javax.swing.plaf.TextUI;
+import javax.swing.text.BadLocationException;
+import javax.swing.text.EditorKit;
+import javax.swing.text.JTextComponent;
+import javax.swing.text.View;
+import javax.swing.text.Position.Bias;
+
+/**
+ * All the methods described in public api
+ */
+public class MultiTextUI extends TextUI {
+
+	protected Vector uis = new Vector();
+
+	/**
+	 * Used in cycles. numberOfUIs = Correct number of UIs + 1, but the variable
+	 * used in that sence
+	 */
+	private int numberOfUIs;
+
+	public static ComponentUI createUI(JComponent a) {
+		MultiTextUI mui = new MultiTextUI();
+		ComponentUI result = MultiLookAndFeel.createUIs(mui, mui.uis, a);
+		mui.numberOfUIs = mui.uis.size();
+		return result;
+	}
+
+	@Override
+	public boolean contains(JComponent a, int b, int c) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).contains(a, b, c);
+		}
+		return ((ComponentUI) uis.firstElement()).contains(a, b, c);
+	}
+
+	@Override
+	public Accessible getAccessibleChild(JComponent a, int b) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChild(a, b);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChild(a, b);
+	}
+
+	@Override
+	public int getAccessibleChildrenCount(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChildrenCount(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChildrenCount(a);
+	}
+
+	@Override
+	public Dimension getMaximumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMaximumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMaximumSize(a);
+	}
+
+	@Override
+	public Dimension getMinimumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMinimumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMinimumSize(a);
+	}
+
+	@Override
+	public Dimension getPreferredSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getPreferredSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getPreferredSize(a);
+	}
+
+	public ComponentUI[] getUIs() {
+		return MultiLookAndFeel.uisToArray(uis);
+	}
+
+	@Override
+	public void installUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).installUI(a);
+		}
+	}
+
+	@Override
+	public void paint(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).paint(a, b);
+		}
+	}
+
+	@Override
+	public void uninstallUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).uninstallUI(a);
+		}
+	}
+
+	@Override
+	public void update(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).update(a, b);
+		}
+	}
+
+	@Override
+	public Rectangle modelToView(JTextComponent a0, int a1)
+			throws BadLocationException {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TextUI) uis.get(i)).modelToView(a0, a1);
+		}
+		return ((TextUI) uis.firstElement()).modelToView(a0, a1);
+	}
+
+	@Override
+	public Rectangle modelToView(JTextComponent a0, int a1, Bias a2)
+			throws BadLocationException {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TextUI) uis.get(i)).modelToView(a0, a1, a2);
+		}
+		return ((TextUI) uis.firstElement()).modelToView(a0, a1, a2);
+	}
+
+	@Override
+	public int viewToModel(JTextComponent a0, Point a1) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TextUI) uis.get(i)).viewToModel(a0, a1);
+		}
+		return ((TextUI) uis.firstElement()).viewToModel(a0, a1);
+	}
+
+	@Override
+	public int viewToModel(JTextComponent a0, Point a1, Bias[] a2) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TextUI) uis.get(i)).viewToModel(a0, a1, a2);
+		}
+		return ((TextUI) uis.firstElement()).viewToModel(a0, a1, a2);
+	}
+
+	@Override
+	public int getNextVisualPositionFrom(JTextComponent a0, int a1, Bias a2,
+			int a3, Bias[] a4) throws BadLocationException {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TextUI) uis.get(i)).getNextVisualPositionFrom(a0, a1, a2, a3, a4);
+		}
+		return ((TextUI) uis.firstElement()).getNextVisualPositionFrom(a0, a1,
+				a2, a3, a4);
+	}
+
+	@Override
+	public void damageRange(JTextComponent a0, int a1, int a2) {
+		for (Object ui : uis) {
+			((TextUI) ui).damageRange(a0, a1, a2);
+		}
+	}
+
+	@Override
+	public void damageRange(JTextComponent a0, int a1, int a2, Bias a3, Bias a4) {
+		for (Object ui : uis) {
+			((TextUI) ui).damageRange(a0, a1, a2, a3, a4);
+		}
+	}
+
+	@Override
+	public EditorKit getEditorKit(JTextComponent a0) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TextUI) uis.get(i)).getEditorKit(a0);
+		}
+		return ((TextUI) uis.firstElement()).getEditorKit(a0);
+	}
+
+	@Override
+	public View getRootView(JTextComponent a0) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TextUI) uis.get(i)).getRootView(a0);
+		}
+		return ((TextUI) uis.firstElement()).getRootView(a0);
+	}
+
+	@Override
+	public String getToolTipText(JTextComponent a0, Point a1) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TextUI) uis.get(i)).getToolTipText(a0, a1);
+		}
+		return ((TextUI) uis.firstElement()).getToolTipText(a0, a1);
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTextUI.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiToolBarUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiToolBarUI.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiToolBarUI.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiToolBarUI.java Thu May 24 16:05:37 2007
@@ -0,0 +1,111 @@
+package javax.swing.plaf.multi;
+
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.util.Vector;
+
+import javax.accessibility.Accessible;
+import javax.swing.JComponent;
+import javax.swing.plaf.ComponentUI;
+import javax.swing.plaf.ToolBarUI;
+
+/**
+ * All the methods described in public api
+ */
+public class MultiToolBarUI extends ToolBarUI {
+
+	protected Vector uis = new Vector();
+
+	/**
+	 * Used in cycles. numberOfUIs = Correct number of UIs + 1, but the variable
+	 * used in that sence
+	 */
+	private int numberOfUIs;
+
+	public static ComponentUI createUI(JComponent a) {
+		MultiToolBarUI mui = new MultiToolBarUI();
+		ComponentUI result = MultiLookAndFeel.createUIs(mui, mui.uis, a);
+		mui.numberOfUIs = mui.uis.size();
+		return result;
+	}
+
+	@Override
+	public boolean contains(JComponent a, int b, int c) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).contains(a, b, c);
+		}
+		return ((ComponentUI) uis.firstElement()).contains(a, b, c);
+	}
+
+	@Override
+	public Accessible getAccessibleChild(JComponent a, int b) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChild(a, b);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChild(a, b);
+	}
+
+	@Override
+	public int getAccessibleChildrenCount(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChildrenCount(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChildrenCount(a);
+	}
+
+	@Override
+	public Dimension getMaximumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMaximumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMaximumSize(a);
+	}
+
+	@Override
+	public Dimension getMinimumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMinimumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMinimumSize(a);
+	}
+
+	@Override
+	public Dimension getPreferredSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getPreferredSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getPreferredSize(a);
+	}
+
+	public ComponentUI[] getUIs() {
+		return MultiLookAndFeel.uisToArray(uis);
+	}
+
+	@Override
+	public void installUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).installUI(a);
+		}
+	}
+
+	@Override
+	public void paint(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).paint(a, b);
+		}
+	}
+
+	@Override
+	public void uninstallUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).uninstallUI(a);
+		}
+	}
+
+	@Override
+	public void update(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).update(a, b);
+		}
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiToolBarUI.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiToolTipUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiToolTipUI.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiToolTipUI.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiToolTipUI.java Thu May 24 16:05:37 2007
@@ -0,0 +1,111 @@
+package javax.swing.plaf.multi;
+
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.util.Vector;
+
+import javax.accessibility.Accessible;
+import javax.swing.JComponent;
+import javax.swing.plaf.ComponentUI;
+import javax.swing.plaf.ToolTipUI;
+
+/**
+ * All the methods described in public api
+ */
+public class MultiToolTipUI extends ToolTipUI {
+
+	protected Vector uis = new Vector();
+
+	/**
+	 * Used in cycles. numberOfUIs = Correct number of UIs + 1, but the variable
+	 * used in that sence
+	 */
+	private int numberOfUIs;
+
+	public static ComponentUI createUI(JComponent a) {
+		MultiToolTipUI mui = new MultiToolTipUI();
+		ComponentUI result = MultiLookAndFeel.createUIs(mui, mui.uis, a);
+		mui.numberOfUIs = mui.uis.size();
+		return result;
+	}
+
+	@Override
+	public boolean contains(JComponent a, int b, int c) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).contains(a, b, c);
+		}
+		return ((ComponentUI) uis.firstElement()).contains(a, b, c);
+	}
+
+	@Override
+	public Accessible getAccessibleChild(JComponent a, int b) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChild(a, b);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChild(a, b);
+	}
+
+	@Override
+	public int getAccessibleChildrenCount(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChildrenCount(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChildrenCount(a);
+	}
+
+	@Override
+	public Dimension getMaximumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMaximumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMaximumSize(a);
+	}
+
+	@Override
+	public Dimension getMinimumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMinimumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMinimumSize(a);
+	}
+
+	@Override
+	public Dimension getPreferredSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getPreferredSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getPreferredSize(a);
+	}
+
+	public ComponentUI[] getUIs() {
+		return MultiLookAndFeel.uisToArray(uis);
+	}
+
+	@Override
+	public void installUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).installUI(a);
+		}
+	}
+
+	@Override
+	public void paint(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).paint(a, b);
+		}
+	}
+
+	@Override
+	public void uninstallUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).uninstallUI(a);
+		}
+	}
+
+	@Override
+	public void update(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).update(a, b);
+		}
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiToolTipUI.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTreeUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTreeUI.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTreeUI.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTreeUI.java Thu May 24 16:05:37 2007
@@ -0,0 +1,192 @@
+package javax.swing.plaf.multi;
+
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.awt.Rectangle;
+import java.util.Vector;
+
+import javax.accessibility.Accessible;
+import javax.swing.JComponent;
+import javax.swing.JTree;
+import javax.swing.plaf.ComponentUI;
+import javax.swing.plaf.TreeUI;
+import javax.swing.tree.TreePath;
+
+/**
+ * All the methods described in public api
+ */
+public class MultiTreeUI extends TreeUI {
+
+	protected Vector uis = new Vector();
+
+	/**
+	 * Used in cycles. numberOfUIs = Correct number of UIs + 1, but the variable
+	 * used in that sence
+	 */
+	private int numberOfUIs;
+
+	public static ComponentUI createUI(JComponent a) {
+		MultiTreeUI mui = new MultiTreeUI();
+		ComponentUI result = MultiLookAndFeel.createUIs(mui, mui.uis, a);
+		mui.numberOfUIs = mui.uis.size();
+		return result;
+	}
+	
+	@Override
+	public boolean contains(JComponent a, int b, int c) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).contains(a, b, c);
+		}
+		return ((ComponentUI) uis.firstElement()).contains(a, b, c);
+	}
+
+	@Override
+	public Accessible getAccessibleChild(JComponent a, int b) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChild(a, b);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChild(a, b);
+	}
+
+	@Override
+	public int getAccessibleChildrenCount(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChildrenCount(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChildrenCount(a);
+	}
+
+	@Override
+	public Dimension getMaximumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMaximumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMaximumSize(a);
+	}
+
+	@Override
+	public Dimension getMinimumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMinimumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMinimumSize(a);
+	}
+
+	@Override
+	public Dimension getPreferredSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getPreferredSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getPreferredSize(a);
+	}
+
+	public ComponentUI[] getUIs() {
+		return MultiLookAndFeel.uisToArray(uis);
+	}
+
+	@Override
+	public void installUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).installUI(a);
+		}
+	}
+
+	@Override
+	public void paint(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).paint(a, b);
+		}
+	}
+
+	@Override
+	public void uninstallUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).uninstallUI(a);
+		}
+	}
+
+	@Override
+	public void update(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).update(a, b);
+		}
+	}
+	
+	@Override
+	public Rectangle getPathBounds(JTree tree, TreePath path) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TreeUI) uis.get(i)).getPathBounds(tree, path);
+		}
+		return ((TreeUI) uis.firstElement()).getPathBounds(tree, path);
+	}
+
+	@Override
+	public TreePath getPathForRow(JTree tree, int row) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TreeUI) uis.get(i)).getPathForRow(tree, row);
+		}
+		return ((TreeUI) uis.firstElement()).getPathForRow(tree, row);
+	}
+
+	@Override
+	public int getRowForPath(JTree tree, TreePath path) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TreeUI) uis.get(i)).getRowForPath(tree, path);
+		}
+		return ((TreeUI) uis.firstElement()).getRowForPath(tree, path);
+	}
+
+	@Override
+	public int getRowCount(JTree tree) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TreeUI) uis.get(i)).getRowCount(tree);
+		}
+		return ((TreeUI) uis.firstElement()).getRowCount(tree);
+	}
+
+	@Override
+	public TreePath getClosestPathForLocation(JTree tree, int x, int y) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TreeUI) uis.get(i)).getClosestPathForLocation(tree,x,y);
+		}
+		return ((TreeUI) uis.firstElement()).getClosestPathForLocation(tree,x,y);
+	}
+
+	@Override
+	public boolean isEditing(JTree tree) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TreeUI) uis.get(i)).isEditing(tree);
+		}
+		return ((TreeUI) uis.firstElement()).isEditing(tree);
+	}
+
+	@Override
+	public boolean stopEditing(JTree path) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TreeUI) uis.get(i)).stopEditing(path);
+		}
+		return ((TreeUI) uis.firstElement()).stopEditing(path);
+	}
+
+	@Override
+	public void cancelEditing(JTree tree) {
+		for (Object ui : uis) {
+			((TreeUI) ui).cancelEditing(tree);
+		}
+	}
+
+	@Override
+	public void startEditingAtPath(JTree tree, TreePath path) {
+		for (Object ui : uis) {
+			((TreeUI) ui).startEditingAtPath(tree, path);
+		}
+	}
+
+	@Override
+	public TreePath getEditingPath(JTree tree) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((TreeUI) uis.get(i)).getEditingPath(tree);
+		}
+		return ((TreeUI) uis.firstElement()).getEditingPath(tree);
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiTreeUI.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiViewportUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiViewportUI.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiViewportUI.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiViewportUI.java Thu May 24 16:05:37 2007
@@ -0,0 +1,111 @@
+package javax.swing.plaf.multi;
+
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.util.Vector;
+
+import javax.accessibility.Accessible;
+import javax.swing.JComponent;
+import javax.swing.plaf.ComponentUI;
+import javax.swing.plaf.ViewportUI;
+
+/**
+ * All the methods described in public api
+ */
+public class MultiViewportUI extends ViewportUI {
+
+	protected Vector uis = new Vector();
+
+	/**
+	 * Used in cycles. numberOfUIs = Correct number of UIs + 1, but the variable
+	 * used in that sence
+	 */
+	private int numberOfUIs;
+
+	public static ComponentUI createUI(JComponent a) {
+		MultiViewportUI mui = new MultiViewportUI();
+		ComponentUI result = MultiLookAndFeel.createUIs(mui, mui.uis, a);
+		mui.numberOfUIs = mui.uis.size();
+		return result;
+	}
+
+	@Override
+	public boolean contains(JComponent a, int b, int c) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).contains(a, b, c);
+		}
+		return ((ComponentUI) uis.firstElement()).contains(a, b, c);
+	}
+
+	@Override
+	public Accessible getAccessibleChild(JComponent a, int b) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChild(a, b);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChild(a, b);
+	}
+
+	@Override
+	public int getAccessibleChildrenCount(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getAccessibleChildrenCount(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getAccessibleChildrenCount(a);
+	}
+
+	@Override
+	public Dimension getMaximumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMaximumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMaximumSize(a);
+	}
+
+	@Override
+	public Dimension getMinimumSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getMinimumSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getMinimumSize(a);
+	}
+
+	@Override
+	public Dimension getPreferredSize(JComponent a) {
+		for (int i = 1; i < numberOfUIs; i++) {
+			((ComponentUI) uis.get(i)).getPreferredSize(a);
+		}
+		return ((ComponentUI) uis.firstElement()).getPreferredSize(a);
+	}
+
+	public ComponentUI[] getUIs() {
+		return MultiLookAndFeel.uisToArray(uis);
+	}
+
+	@Override
+	public void installUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).installUI(a);
+		}
+	}
+
+	@Override
+	public void paint(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).paint(a, b);
+		}
+	}
+
+	@Override
+	public void uninstallUI(JComponent a) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).uninstallUI(a);
+		}
+	}
+
+	@Override
+	public void update(Graphics a, JComponent b) {
+		for (Object ui : uis) {
+			((ComponentUI) ui).update(a, b);
+		}
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/multi/MultiViewportUI.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/internal/nls/messages.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/internal/nls/messages.properties?view=diff&rev=541469&r1=541468&r2=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/internal/nls/messages.properties (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/internal/nls/messages.properties Thu May 24 16:05:37 2007
@@ -195,6 +195,7 @@
 swing.B2='{0}' must be one of: '{1}'
 swing.B3=condition must be one of '{0}' or '{1}'
 swing.B4=Synth Look and Feel
+swing.B5=Allows multiple UI instances per component instance
 
 swing.err.01=Illegal request
 swing.err.02=BoxLayout should be used for one container only

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/UIManagerTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/UIManagerTest.java?view=diff&rev=541469&r1=541468&r2=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/UIManagerTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/UIManagerTest.java Thu May 24 16:05:37 2007
@@ -26,6 +26,8 @@
 import java.awt.Insets;
 import java.beans.PropertyChangeListener;
 import java.util.Locale;
+
+import javax.swing.UIManager;
 import javax.swing.UIManager.LookAndFeelInfo;
 import javax.swing.border.Border;
 import javax.swing.plaf.ComponentUI;
@@ -260,6 +262,32 @@
             }
         }
         assertTrue(foundMetalLF);
+    }
+    
+    public void testAuxillaryLafs() {
+
+        MetalLookAndFeel auxLaf1 = new MetalLookAndFeel();
+        MetalLookAndFeel auxLaf2 = new MetalLookAndFeel();
+
+        assertEquals(UIManager.getAuxiliaryLookAndFeels().length, 0);
+        UIManager.addAuxiliaryLookAndFeel(auxLaf1);
+        assertEquals(UIManager.getAuxiliaryLookAndFeels().length, 1);
+        UIManager.addAuxiliaryLookAndFeel(auxLaf1);
+        assertEquals(UIManager.getAuxiliaryLookAndFeels().length, 1);
+        UIManager.addAuxiliaryLookAndFeel(auxLaf2);
+        assertEquals(UIManager.getAuxiliaryLookAndFeels().length, 2);
+        UIManager.addAuxiliaryLookAndFeel(createUnsupportedLF());
+        assertEquals(UIManager.getAuxiliaryLookAndFeels().length, 2);
+
+        assertTrue(UIManager.removeAuxiliaryLookAndFeel(auxLaf1));
+        assertEquals(UIManager.getAuxiliaryLookAndFeels().length, 1);
+        assertFalse(UIManager.removeAuxiliaryLookAndFeel(auxLaf1));
+        assertFalse(UIManager
+                .removeAuxiliaryLookAndFeel(new MetalLookAndFeel()));
+        assertEquals(UIManager.getAuxiliaryLookAndFeels().length, 1);
+        assertTrue(UIManager.removeAuxiliaryLookAndFeel(auxLaf2));
+        assertEquals(UIManager.getAuxiliaryLookAndFeels().length, 0);
+
     }
 
     private LookAndFeel createUnsupportedLF() {

Added: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/MultiLookAndFeelTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/MultiLookAndFeelTest.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/MultiLookAndFeelTest.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/MultiLookAndFeelTest.java Thu May 24 16:05:37 2007
@@ -0,0 +1,114 @@
+package javax.swing.plaf.multi;
+
+import java.util.Vector;
+
+import javax.swing.JButton;
+import javax.swing.JLabel;
+import javax.swing.LookAndFeel;
+import javax.swing.UIManager;
+import javax.swing.plaf.ComponentUI;
+
+import junit.framework.TestCase;
+
+public class MultiLookAndFeelTest extends TestCase {
+
+	private MultiLookAndFeel mlaf = new MultiLookAndFeel();
+
+	/*
+	 * Test method for
+	 * 'javax.swing.plaf.multi.MultiLookAndFeel.isNativeLookAndFeel()'
+	 */
+	public void testIsNativeLookAndFeel() {
+		assertFalse(mlaf.isNativeLookAndFeel());
+	}
+
+	/*
+	 * Test method for
+	 * 'javax.swing.plaf.multi.MultiLookAndFeel.isSupportedLookAndFeel()'
+	 */
+	public void testIsSupportedLookAndFeel() {
+		assertTrue(mlaf.isSupportedLookAndFeel());
+	}
+
+	/*
+	 * Test method for 'javax.swing.plaf.multi.MultiLookAndFeel.getName()'
+	 */
+	public void testGetName() {
+		assertEquals(mlaf.getName(), "Multiplexing Look and Feel"); //$NON-NLS-1$
+	}
+
+	/*
+	 * Test method for 'javax.swing.plaf.multi.MultiLookAndFeel.getID()'
+	 */
+	public void testGetID() {
+		assertEquals(mlaf.getID(), "Multiplex"); //$NON-NLS-1$
+	}
+
+	/*
+	 * Test method for
+	 * 'javax.swing.plaf.multi.MultiLookAndFeel.createUIs(ComponentUI, Vector,
+	 * JComponent)'
+	 */
+	public void testCreateUIs() {
+
+		JButton button = new JButton();
+		JLabel label = new JLabel();
+		ComponentUI buttonUI = UIManager.getUI(button);
+		ComponentUI labelUI = UIManager.getUI(label);
+		MultiButtonUI multiButtonUI = new MultiButtonUI();
+		MultiLabelUI multiLabelUI = new MultiLabelUI();
+		LookAndFeel auxLaf = new SyserrLookAndFeel();
+
+		// without auxiliary look and feels createUIs returns UI fron default
+		// look and feel
+		assertEquals(buttonUI, MultiLookAndFeel.createUIs(multiButtonUI,
+				multiButtonUI.uis, button));
+
+		UIManager.addAuxiliaryLookAndFeel(auxLaf);
+
+		// SyserrLookAndFeel contains UI for button so createUIs should return
+		// MultiButtonUI
+		assertEquals(multiButtonUI, MultiLookAndFeel.createUIs(multiButtonUI,
+				multiButtonUI.uis, button));
+		// But SyserrLookAndFeel doesn't contain UI for JLabel so createUIs
+		// should return UI from default laf
+		assertEquals(labelUI, MultiLookAndFeel.createUIs(multiLabelUI,
+				multiLabelUI.uis, label));
+
+		UIManager.removeAuxiliaryLookAndFeel(auxLaf);
+	}
+
+	/*
+	 * Test method for 'javax.swing.plaf.multi.MultiLookAndFeel.getDefaults()'
+	 * Defaults contains referenses to Multi classes only
+	 */
+	public void testGetDefaults() {
+		assertEquals(mlaf.getDefaults().get("ButtonUI"), //$NON-NLS-1$
+				"javax.swing.plaf.multi.MultiButtonUI"); //$NON-NLS-1$
+		assertNull(mlaf.getDefaults().get("Button.background")); //$NON-NLS-1$
+	}
+
+	/*
+	 * Test method for
+	 * 'javax.swing.plaf.multi.MultiLookAndFeel.uisToArray(Vector)'
+	 */
+	@SuppressWarnings("unchecked")
+	public void testUisToArray() {
+
+		assertEquals(0, MultiLookAndFeel.uisToArray(null).length);
+		assertNull(MultiLookAndFeel.uisToArray(new Vector()));
+
+		Vector v = new Vector();
+		ComponentUI content = new SyserrButtonUI();
+		v.add(content);
+		assertSame(content, MultiLookAndFeel.uisToArray(v)[0]);
+
+		v.add(new Object());
+		try {
+			MultiLookAndFeel.uisToArray(v);
+			fail();
+		} catch (Exception e) {
+			// Correct behavior. The exception isn't described in spec
+		}
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/MultiLookAndFeelTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/SyserrButtonUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/SyserrButtonUI.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/SyserrButtonUI.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/SyserrButtonUI.java Thu May 24 16:05:37 2007
@@ -0,0 +1,20 @@
+package javax.swing.plaf.multi;
+
+import java.awt.Graphics;
+
+import javax.swing.JComponent;
+import javax.swing.plaf.ButtonUI;
+import javax.swing.plaf.ComponentUI;
+
+public class SyserrButtonUI extends ButtonUI {
+
+	public static ComponentUI createUI(JComponent a) {
+		System.err.println("create");
+		return new SyserrButtonUI();
+	}
+
+	@Override
+	public void paint(Graphics a, JComponent b) {
+		System.err.println("paint");
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/SyserrButtonUI.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/SyserrLookAndFeel.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/SyserrLookAndFeel.java?view=auto&rev=541469
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/SyserrLookAndFeel.java (added)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/SyserrLookAndFeel.java Thu May 24 16:05:37 2007
@@ -0,0 +1,46 @@
+package javax.swing.plaf.multi;
+
+import javax.swing.LookAndFeel;
+import javax.swing.UIDefaults;
+
+public class SyserrLookAndFeel extends LookAndFeel {
+
+	UIDefaults uiDefaults;
+
+	@Override
+	public String getName() {
+		return "SyserrLaf"; //$NON-NLS-1$
+	}
+
+	@Override
+	public String getID() {
+		return "SyserrLaf"; //$NON-NLS-1$
+	}
+
+	@Override
+	public String getDescription() {
+		return "Look and feel for testing Muttiplexing laf"; //$NON-NLS-1$
+	}
+
+	@Override
+	public boolean isNativeLookAndFeel() {
+		return false;
+	}
+
+	@Override
+	public boolean isSupportedLookAndFeel() {
+		return true;
+	}
+
+	@Override
+	public UIDefaults getDefaults() {
+
+		return new UIDefaults(new Object[] { "ButtonUI", //$NON-NLS-1$
+				"javax.swing.plaf.multi.SyserrButtonUI", }) {//$NON-NLS-1$
+			@Override
+			protected void getUIError(String s) {
+				// Remove unneded mesage
+			}
+		};
+	}
+}

Propchange: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/SyserrLookAndFeel.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message