< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java
Print this page
@@ -260,13 +260,13 @@
this.tabPane = null;
}
/**
- * Invoked by <code>installUI</code> to create
+ * Invoked by {@code installUI} to create
* a layout manager object to manage
- * the <code>JTabbedPane</code>.
+ * the {@code JTabbedPane}.
*
* @return a layout manager object
*
* @see TabbedPaneLayout
* @see javax.swing.JTabbedPane#getTabLayoutPolicy
@@ -622,23 +622,23 @@
mnemonicInputMap);
}
/**
* Sets the tab the mouse is over by location. This is a cover method
- * for <code>setRolloverTab(tabForCoordinate(x, y, false))</code>.
+ * for {@code setRolloverTab(tabForCoordinate(x, y, false))}.
*/
private void setRolloverTab(int x, int y) {
// NOTE:
// This calls in with false otherwise it could trigger a validate,
// which should NOT happen if the user is only dragging the
// mouse around.
setRolloverTab(tabForCoordinate(tabPane, x, y, false));
}
/**
- * Sets the tab the mouse is currently over to <code>index</code>.
- * <code>index</code> will be -1 if the mouse is no longer over any
+ * Sets the tab the mouse is currently over to {@code index}.
+ * {@code index} will be -1 if the mouse is no longer over any
* tab. No checking is done to ensure the passed in index identifies a
* valid tab.
*
* @param index Index of the tab the mouse is over.
* @since 1.5
@@ -769,11 +769,11 @@
getBaselineOffset();
}
/**
* Returns the amount the baseline is offset by. This is typically
- * the same as <code>getTabLabelShiftY</code>.
+ * the same as {@code getTabLabelShiftY}.
*
* @return amount to offset the baseline by
* @since 1.6
*/
protected int getBaselineOffset() {
@@ -861,14 +861,14 @@
}
/**
* Paints the tabs in the tab area.
* Invoked by paint().
- * The graphics parameter must be a valid <code>Graphics</code>
+ * The graphics parameter must be a valid {@code Graphics}
* object. Tab placement may be either:
- * <code>JTabbedPane.TOP</code>, <code>JTabbedPane.BOTTOM</code>,
- * <code>JTabbedPane.LEFT</code>, or <code>JTabbedPane.RIGHT</code>.
+ * {@code JTabbedPane.TOP}, {@code JTabbedPane.BOTTOM},
+ * {@code JTabbedPane.LEFT}, or {@code JTabbedPane.RIGHT}.
* The selected index must be a valid tabbed pane tab index (0 to
* tab count - 1, inclusive) or -1 if no tab is currently selected.
* The handling of invalid parameters is unspecified.
*
* @param g the graphics object to use for rendering
@@ -1710,11 +1710,11 @@
* This method should be used whenever the tab rectangle must be relative
* to the JTabbedPane itself and the result should be placed in a
* designated Rectangle object (rather than instantiating and returning
* a new Rectangle each time). The tab index parameter must be a valid
* tabbed pane tab index (0 to tab count - 1, inclusive). The destination
- * rectangle parameter must be a valid <code>Rectangle</code> instance.
+ * rectangle parameter must be a valid {@code Rectangle} instance.
* The handling of invalid parameters is unspecified.
*
* @param tabIndex the index of the tab
* @param dest the rectangle where the result should be placed
* @return the resulting rectangle
< prev index next >