< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/metal/MetalToolBarUI.java

Print this page

        

*** 111,122 **** } } } /** ! * Finds a previously registered component of class <code>target</code> ! * that shares the JRootPane ancestor of <code>from</code>. */ static synchronized Object findRegisteredComponentOfType(JComponent from, Class<?> target) { JRootPane rp = SwingUtilities.getRootPane(from); if (rp != null) { --- 111,122 ---- } } } /** ! * Finds a previously registered component of class {@code target} ! * that shares the JRootPane ancestor of {@code from}. */ static synchronized Object findRegisteredComponentOfType(JComponent from, Class<?> target) { JRootPane rp = SwingUtilities.getRootPane(from); if (rp != null) {
*** 251,272 **** /** * Creates a container listener that will be added to the JToolBar. * If this method returns null then it will not be added to the * toolbar. * ! * @return an instance of a <code>ContainerListener</code> or null */ protected ContainerListener createContainerListener() { return null; } /** * Creates a property change listener that will be added to the JToolBar. * If this method returns null then it will not be added to the * toolbar. * ! * @return an instance of a <code>PropertyChangeListener</code> or null */ protected PropertyChangeListener createRolloverListener() { return null; } --- 251,272 ---- /** * Creates a container listener that will be added to the JToolBar. * If this method returns null then it will not be added to the * toolbar. * ! * @return an instance of a {@code ContainerListener} or null */ protected ContainerListener createContainerListener() { return null; } /** * Creates a property change listener that will be added to the JToolBar. * If this method returns null then it will not be added to the * toolbar. * ! * @return an instance of a {@code PropertyChangeListener} or null */ protected PropertyChangeListener createRolloverListener() { return null; }
*** 289,303 **** } } /** * If necessary paints the background of the component, then invokes ! * <code>paint</code>. * * @param g Graphics to paint to * @param c JComponent painting on ! * @throws NullPointerException if <code>g</code> or <code>c</code> is * null * @see javax.swing.plaf.ComponentUI#update * @see javax.swing.plaf.ComponentUI#paint * @since 1.5 */ --- 289,303 ---- } } /** * If necessary paints the background of the component, then invokes ! * {@code paint}. * * @param g Graphics to paint to * @param c JComponent painting on ! * @throws NullPointerException if {@code g} or {@code c} is * null * @see javax.swing.plaf.ComponentUI#update * @see javax.swing.plaf.ComponentUI#paint * @since 1.5 */
< prev index next >