< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/metal/MetalToolBarUI.java
Print this page
@@ -111,12 +111,12 @@
}
}
}
/**
- * Finds a previously registered component of class <code>target</code>
- * that shares the JRootPane ancestor of <code>from</code>.
+ * 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,22 +251,22 @@
/**
* 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
+ * @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</code> or null
+ * @return an instance of a {@code PropertyChangeListener} or null
*/
protected PropertyChangeListener createRolloverListener() {
return null;
}
@@ -289,15 +289,15 @@
}
}
/**
* If necessary paints the background of the component, then invokes
- * <code>paint</code>.
+ * {@code paint}.
*
* @param g Graphics to paint to
* @param c JComponent painting on
- * @throws NullPointerException if <code>g</code> or <code>c</code> is
+ * @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 >