src/share/classes/javax/swing/plaf/multi/MultiLookAndFeel.java

Print this page

        

*** 219,229 **** * @see javax.swing.UIDefaults#getUI * @see MultiButtonUI#uis * @see MultiButtonUI#createUI */ public static ComponentUI createUIs(ComponentUI mui, ! Vector uis, JComponent target) { ComponentUI ui; // Make sure we can at least get the default UI // --- 219,229 ---- * @see javax.swing.UIDefaults#getUI * @see MultiButtonUI#uis * @see MultiButtonUI#createUI */ public static ComponentUI createUIs(ComponentUI mui, ! Vector<ComponentUI> uis, JComponent target) { ComponentUI ui; // Make sure we can at least get the default UI //
*** 246,256 **** // Don't bother returning the multiplexing UI if all we did was // get a UI from just the default look and feel. // if (uis.size() == 1) { ! return (ComponentUI) uis.elementAt(0); } else { return mui; } } --- 246,256 ---- // Don't bother returning the multiplexing UI if all we did was // get a UI from just the default look and feel. // if (uis.size() == 1) { ! return uis.elementAt(0); } else { return mui; } }
*** 267,285 **** * * @param uis a vector containing <code>ComponentUI</code> objects * @return an array equivalent to the passed-in vector * */ ! protected static ComponentUI[] uisToArray(Vector uis) { if (uis == null) { return new ComponentUI[0]; } else { int count = uis.size(); if (count > 0) { ComponentUI[] u = new ComponentUI[count]; for (int i = 0; i < count; i++) { ! u[i] = (ComponentUI)uis.elementAt(i); } return u; } else { return null; } --- 267,285 ---- * * @param uis a vector containing <code>ComponentUI</code> objects * @return an array equivalent to the passed-in vector * */ ! protected static ComponentUI[] uisToArray(Vector<? extends ComponentUI> uis) { if (uis == null) { return new ComponentUI[0]; } else { int count = uis.size(); if (count > 0) { ComponentUI[] u = new ComponentUI[count]; for (int i = 0; i < count; i++) { ! u[i] = uis.elementAt(i); } return u; } else { return null; }