This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.swing.plaf.basic
class BasicTabbedPaneUI

java.lang.Object extended by javax.swing.plaf.ComponentUI extended by javax.swing.plaf.TabbedPaneUI extended by javax.swing.plaf.basic.BasicTabbedPaneUI
All Implemented Interfaces:
SwingConstants
Direct Known Subclasses:
MetalTabbedPaneUI

public class BasicTabbedPaneUI
extends TabbedPaneUI
implements SwingConstants

A Basic L&F implementation of TabbedPaneUI.


Nested Class Summary
 class

           This class should be treated as a "protected" inner class.
 class

           This class should be treated as a "protected" inner class.
 class

           This class should be treated as a "protected" inner class.
 class

           This class should be treated as a "protected" inner class.
 class

           This class should be treated as a "protected" inner class.
 
Field Summary
protected transient Rectangle calcRect
          A rectangle used for general layout calculations in order to avoid constructing many new Rectangles on the fly.
protected Insets contentBorderInsets
          
protected Color darkShadow
          
protected KeyStroke downKey
          As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected Color focus
          
protected FocusListener focusListener
          
protected Color highlight
          
protected KeyStroke leftKey
          As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected Color lightHighlight
          
protected int maxTabHeight
          
protected int maxTabWidth
          
protected MouseListener mouseListener
          
protected PropertyChangeListener propertyChangeListener
          
protected Rectangle[] rects
          
protected KeyStroke rightKey
          As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected int runCount
          
protected int selectedRun
          
protected Insets selectedTabPadInsets
          
protected Color shadow
          
protected Insets tabAreaInsets
          
protected ChangeListener tabChangeListener
          
protected Insets tabInsets
          
protected JTabbedPane tabPane
          
protected int tabRunOverlay
          
protected int[] tabRuns
          
protected int textIconGap
          
protected KeyStroke upKey
          As of Java 2 platform v1.3 this previously undocumented field is no longer used.
 
Constructor Summary

          
 
Method Summary
protected void
assureRectsCreated(int tabCount)

          
protected int
calculateMaxTabHeight(int tabPlacement)

          
protected int
calculateMaxTabWidth(int tabPlacement)

          
protected int
calculateTabAreaHeight(int tabPlacement, int horizRunCount, int maxTabHeight)

          
protected int
calculateTabAreaWidth(int tabPlacement, int vertRunCount, int maxTabWidth)

          
protected int
calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight)

          
protected int
calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics)

          
protected ChangeListener

          
protected FocusListener

          
protected LayoutManager

          Invoked by installUI to create a layout manager object to manage the JTabbedPane.
protected MouseListener

          
protected PropertyChangeListener

          
protected JButton
createScrollButton(int direction)

          Creates and returns a JButton that will provide the user with a way to scroll the tabs in a particular direction.
static ComponentUI

          
protected void

          
protected int
getBaseline(int tab)

          Returns the baseline for the specified tab.
 int
getBaseline(JComponent c, int width, int height)

          Returns the baseline.
protected int

          Returns the amount the baseline is offset by.
 Component.BaselineResizeBehavior

          Returns an enum indicating how the baseline of the component changes as the size changes.
protected Insets
getContentBorderInsets(int tabPlacement)

          
protected int

          Returns the index of the tab that has focus.
protected FontMetrics

          
protected Icon
getIconForTab(int tabIndex)

          
 Dimension

          Returns the specified component's maximum size appropriate for the look and feel.
 Dimension

          Returns the specified component's minimum size appropriate for the look and feel.
protected int
getNextTabIndex(int base)

          
protected int
getNextTabIndexInRun(int tabCount, int base)

          
protected int
getNextTabRun(int baseRun)

          
protected int

          
protected int
getPreviousTabIndexInRun(int tabCount, int base)

          
protected int
getPreviousTabRun(int baseRun)

          
protected int

          Returns the tab the mouse is currently over, or if the mouse is no longer over any tab.
protected int
getRunForTab(int tabCount, int tabIndex)

          
protected Insets
getSelectedTabPadInsets(int tabPlacement)

          
protected Insets
getTabAreaInsets(int tabPlacement)

          
protected Rectangle
getTabBounds(int tabIndex, Rectangle dest)

          Returns the bounds of the specified tab in the coordinate space of the JTabbedPane component.
 Rectangle
getTabBounds(JTabbedPane pane, int i)

          Returns the bounds of the specified tab index.
protected Insets
getTabInsets(int tabPlacement, int tabIndex)

          
protected int
getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)

          
protected int
getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)

          
 int

          
protected int
getTabRunIndent(int tabPlacement, int run)

          
protected int
getTabRunOffset(int tabPlacement, int tabCount, int tabIndex, boolean forward)

          
protected int
getTabRunOverlay(int tabPlacement)

          
protected View
getTextViewForTab(int tabIndex)

          Returns the text View object required to render stylized text (HTML) for the specified tab or null if no specialized text rendering is needed for this tab.
protected Component

          
protected void

          Creates and installs any required subcomponents for the JTabbedPane.
protected void

          
protected void

          
protected void

          
 void

          Configures the specified component appropriate for the look and feel.
protected int
lastTabInRun(int tabCount, int run)

          
protected void
layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)

          
protected void
navigateSelectedTab(int direction)

          
 void

          Paints the specified component appropriate for the look and feel.
protected void
paintContentBorder(Graphics g, int tabPlacement, int selectedIndex)

          
protected void
paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)

          
protected void
paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)

          
protected void
paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)

          
protected void
paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)

          
protected void
paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)

          
protected void
paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)

          
protected void
paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)

          
protected void
paintTabArea(Graphics g, int tabPlacement, int selectedIndex)

          Paints the tabs in the tab area.
protected void
paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)

          
protected void
paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)

          this function draws the border around each tab note that this function does now draw the background of the tab.
protected void
paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)

          
protected static void
rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement)

          
protected void
selectAdjacentRunTab(int tabPlacement, int tabIndex, int offset)

          
protected void
selectNextTab(int current)

          
protected void
selectNextTabInRun(int current)

          
protected void
selectPreviousTab(int current)

          
protected void

          
protected void
setRolloverTab(int index)

          Sets the tab the mouse is currently over to index.
protected void

          
protected boolean
shouldPadTabRun(int tabPlacement, int run)

          
protected boolean
shouldRotateTabRuns(int tabPlacement)

          
 int
tabForCoordinate(JTabbedPane pane, int x, int y)

          Returns the tab index which intersects the specified point in the JTabbedPane's coordinate space.
protected void

          Removes any installed subcomponents from the JTabbedPane.
protected void

          
protected void

          
protected void

          
 void

          Reverses configuration which was done on the specified component during installUI.
 
Methods inherited from class javax.swing.plaf.TabbedPaneUI
getTabBounds, getTabRunCount, tabForCoordinate
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

calcRect

protected transient Rectangle calcRect
A rectangle used for general layout calculations in order to avoid constructing many new Rectangles on the fly.

contentBorderInsets

protected Insets contentBorderInsets

darkShadow

protected Color darkShadow

downKey

protected KeyStroke downKey
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.

focus

protected Color focus

focusListener

protected FocusListener focusListener

highlight

protected Color highlight

leftKey

protected KeyStroke leftKey
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.

lightHighlight

protected Color lightHighlight

maxTabHeight

protected int maxTabHeight

maxTabWidth

protected int maxTabWidth

mouseListener

protected MouseListener mouseListener

propertyChangeListener

protected PropertyChangeListener propertyChangeListener

rects

protected Rectangle[] rects

rightKey

protected KeyStroke rightKey
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.

runCount

protected int runCount

selectedRun

protected int selectedRun

selectedTabPadInsets

protected Insets selectedTabPadInsets

shadow

protected Color shadow

tabAreaInsets

protected Insets tabAreaInsets

tabChangeListener

protected ChangeListener tabChangeListener

tabInsets

protected Insets tabInsets

tabPane

protected JTabbedPane tabPane

tabRunOverlay

protected int tabRunOverlay

tabRuns

protected int[] tabRuns

textIconGap

protected int textIconGap

upKey

protected KeyStroke upKey
As of Java 2 platform v1.3 this previously undocumented field is no longer used. Key bindings are now defined by the LookAndFeel, please refer to the key bindings specification for further details.
Constructor Detail

BasicTabbedPaneUI

public BasicTabbedPaneUI()
Method Detail

assureRectsCreated

protected void assureRectsCreated(int tabCount)
Parameters:
tabCount

calculateMaxTabHeight

protected int calculateMaxTabHeight(int tabPlacement)
Parameters:
tabPlacement

calculateMaxTabWidth

protected int calculateMaxTabWidth(int tabPlacement)
Parameters:
tabPlacement

calculateTabAreaHeight

protected int calculateTabAreaHeight(int tabPlacement,
                                     int horizRunCount,
                                     int maxTabHeight)
Parameters:
tabPlacement
horizRunCount
maxTabHeight

calculateTabAreaWidth

protected int calculateTabAreaWidth(int tabPlacement,
                                    int vertRunCount,
                                    int maxTabWidth)
Parameters:
tabPlacement
vertRunCount
maxTabWidth

calculateTabHeight

protected int calculateTabHeight(int tabPlacement,
                                 int tabIndex,
                                 int fontHeight)
Parameters:
tabPlacement
tabIndex
fontHeight

calculateTabWidth

protected int calculateTabWidth(int tabPlacement,
                                int tabIndex,
                                FontMetrics metrics)
Parameters:
tabPlacement
tabIndex
metrics

createChangeListener

protected ChangeListener createChangeListener()

createFocusListener

protected FocusListener createFocusListener()

createLayoutManager

protected LayoutManager createLayoutManager()
Invoked by installUI to create a layout manager object to manage the JTabbedPane.

Returns:
a layout manager object

createMouseListener

protected MouseListener createMouseListener()

createPropertyChangeListener

protected PropertyChangeListener createPropertyChangeListener()

createScrollButton

protected JButton createScrollButton(int direction)
Creates and returns a JButton that will provide the user with a way to scroll the tabs in a particular direction. The returned JButton must be instance of UIResource.

Parameters:
direction - One of the SwingConstants constants: SOUTH, NORTH, EAST or WEST
Returns:
Widget for user to

createUI

public static ComponentUI createUI(JComponent c)
Parameters:
c

expandTabRunsArray

protected void expandTabRunsArray()

getBaseline

protected int getBaseline(int tab)
Returns the baseline for the specified tab.

Parameters:
tab - index of tab to get baseline for
Returns:
baseline or a value < 0 indicating there is no reasonable baseline

getBaseline

public int getBaseline(JComponent c,
                       int width,
                       int height)
Returns the baseline.

Overrides:
getBaseline in class ComponentUI
Parameters:
c
width
height

getBaselineOffset

protected int getBaselineOffset()
Returns the amount the baseline is offset by. This is typically the same as getTabLabelShiftY.

Returns:
amount to offset the baseline by

getBaselineResizeBehavior

public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)
Returns an enum indicating how the baseline of the component changes as the size changes.

Overrides:
getBaselineResizeBehavior in class ComponentUI
Parameters:
c

getContentBorderInsets

protected Insets getContentBorderInsets(int tabPlacement)
Parameters:
tabPlacement

getFocusIndex

protected int getFocusIndex()
Returns the index of the tab that has focus.

Returns:
index of tab that has focus

getFontMetrics

protected FontMetrics getFontMetrics()

getIconForTab

protected Icon getIconForTab(int tabIndex)
Parameters:
tabIndex

getMaximumSize

public Dimension getMaximumSize(JComponent c)
Overrides:
getMaximumSize in class ComponentUI
Parameters:
c

getMinimumSize

public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class ComponentUI
Parameters:
c

getNextTabIndex

protected int getNextTabIndex(int base)
Parameters:
base

getNextTabIndexInRun

protected int getNextTabIndexInRun(int tabCount,
                                   int base)
Parameters:
tabCount
base

getNextTabRun

protected int getNextTabRun(int baseRun)
Parameters:
baseRun

getPreviousTabIndex

protected int getPreviousTabIndex(int base)
Parameters:
base

getPreviousTabIndexInRun

protected int getPreviousTabIndexInRun(int tabCount,
                                       int base)
Parameters:
tabCount
base

getPreviousTabRun

protected int getPreviousTabRun(int baseRun)
Parameters:
baseRun

getRolloverTab

protected int getRolloverTab()
Returns the tab the mouse is currently over, or {@code -1} if the mouse is no longer over any tab.

Returns:
the tab the mouse is currently over, or {@code -1} if the mouse is no longer over any tab

getRunForTab

protected int getRunForTab(int tabCount,
                           int tabIndex)
Parameters:
tabCount
tabIndex

getSelectedTabPadInsets

protected Insets getSelectedTabPadInsets(int tabPlacement)
Parameters:
tabPlacement

getTabAreaInsets

protected Insets getTabAreaInsets(int tabPlacement)
Parameters:
tabPlacement

getTabBounds

protected Rectangle getTabBounds(int tabIndex,
                                 Rectangle dest)
Returns the bounds of the specified tab in the coordinate space of the JTabbedPane component. This is required because the tab rects are by default defined in the coordinate space of the component where they are rendered, which could be the JTabbedPane (for WRAP_TAB_LAYOUT) or a ScrollableTabPanel (SCROLL_TAB_LAYOUT). 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 Rectangle instance. The handling of invalid parameters is unspecified.

Parameters:
tabIndex - the index of the tab
dest - the rectangle where the result should be placed
Returns:
the resulting rectangle

getTabBounds

public Rectangle getTabBounds(JTabbedPane pane,
                              int i)
Returns the bounds of the specified tab index. The bounds are with respect to the JTabbedPane's coordinate space.

Overrides:
getTabBounds in class TabbedPaneUI
Parameters:
pane
i

getTabInsets

protected Insets getTabInsets(int tabPlacement,
                              int tabIndex)
Parameters:
tabPlacement
tabIndex

getTabLabelShiftX

protected int getTabLabelShiftX(int tabPlacement,
                                int tabIndex,
                                boolean isSelected)
Parameters:
tabPlacement
tabIndex
isSelected

getTabLabelShiftY

protected int getTabLabelShiftY(int tabPlacement,
                                int tabIndex,
                                boolean isSelected)
Parameters:
tabPlacement
tabIndex
isSelected

getTabRunCount

public int getTabRunCount(JTabbedPane pane)
Overrides:
getTabRunCount in class TabbedPaneUI
Parameters:
pane

getTabRunIndent

protected int getTabRunIndent(int tabPlacement,
                              int run)
Parameters:
tabPlacement
run

getTabRunOffset

protected int getTabRunOffset(int tabPlacement,
                              int tabCount,
                              int tabIndex,
                              boolean forward)
Parameters:
tabPlacement
tabCount
tabIndex
forward

getTabRunOverlay

protected int getTabRunOverlay(int tabPlacement)
Parameters:
tabPlacement

getTextViewForTab

protected View getTextViewForTab(int tabIndex)
Returns the text View object required to render stylized text (HTML) for the specified tab or null if no specialized text rendering is needed for this tab. This is provided to support html rendering inside tabs.

Parameters:
tabIndex - the index of the tab
Returns:
the text view to render the tab's text or null if no specialized rendering is required

getVisibleComponent

protected Component getVisibleComponent()

installComponents

protected void installComponents()
Creates and installs any required subcomponents for the JTabbedPane. Invoked by installUI.


installDefaults

protected void installDefaults()

installKeyboardActions

protected void installKeyboardActions()

installListeners

protected void installListeners()

installUI

public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI
Parameters:
c

lastTabInRun

protected int lastTabInRun(int tabCount,
                           int run)
Parameters:
tabCount
run

layoutLabel

protected void layoutLabel(int tabPlacement,
                           FontMetrics metrics,
                           int tabIndex,
                           String title,
                           Icon icon,
                           Rectangle tabRect,
                           Rectangle iconRect,
                           Rectangle textRect,
                           boolean isSelected)
Parameters:
tabPlacement
metrics
tabIndex
title
icon
tabRect
iconRect
textRect
isSelected

navigateSelectedTab

protected void navigateSelectedTab(int direction)
Parameters:
direction

paint

public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class ComponentUI
Parameters:
g
c

paintContentBorder

protected void paintContentBorder(Graphics g,
                                  int tabPlacement,
                                  int selectedIndex)
Parameters:
g
tabPlacement
selectedIndex

paintContentBorderBottomEdge

protected void paintContentBorderBottomEdge(Graphics g,
                                            int tabPlacement,
                                            int selectedIndex,
                                            int x,
                                            int y,
                                            int w,
                                            int h)
Parameters:
g
tabPlacement
selectedIndex
x
y
w
h

paintContentBorderLeftEdge

protected void paintContentBorderLeftEdge(Graphics g,
                                          int tabPlacement,
                                          int selectedIndex,
                                          int x,
                                          int y,
                                          int w,
                                          int h)
Parameters:
g
tabPlacement
selectedIndex
x
y
w
h

paintContentBorderRightEdge

protected void paintContentBorderRightEdge(Graphics g,
                                           int tabPlacement,
                                           int selectedIndex,
                                           int x,
                                           int y,
                                           int w,
                                           int h)
Parameters:
g
tabPlacement
selectedIndex
x
y
w
h

paintContentBorderTopEdge

protected void paintContentBorderTopEdge(Graphics g,
                                         int tabPlacement,
                                         int selectedIndex,
                                         int x,
                                         int y,
                                         int w,
                                         int h)
Parameters:
g
tabPlacement
selectedIndex
x
y
w
h

paintFocusIndicator

protected void paintFocusIndicator(Graphics g,
                                   int tabPlacement,
                                   Rectangle[] rects,
                                   int tabIndex,
                                   Rectangle iconRect,
                                   Rectangle textRect,
                                   boolean isSelected)
Parameters:
g
tabPlacement
rects
tabIndex
iconRect
textRect
isSelected

paintIcon

protected void paintIcon(Graphics g,
                         int tabPlacement,
                         int tabIndex,
                         Icon icon,
                         Rectangle iconRect,
                         boolean isSelected)
Parameters:
g
tabPlacement
tabIndex
icon
iconRect
isSelected

paintTab

protected void paintTab(Graphics g,
                        int tabPlacement,
                        Rectangle[] rects,
                        int tabIndex,
                        Rectangle iconRect,
                        Rectangle textRect)
Parameters:
g
tabPlacement
rects
tabIndex
iconRect
textRect

paintTabArea

protected void paintTabArea(Graphics g,
                            int tabPlacement,
                            int selectedIndex)
Paints the tabs in the tab area. Invoked by paint(). The graphics parameter must be a valid Graphics object. Tab placement may be either: JTabbedPane.TOP, JTabbedPane.BOTTOM, JTabbedPane.LEFT, or 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.

Parameters:
g - the graphics object to use for rendering
tabPlacement - the placement for the tabs within the JTabbedPane
selectedIndex - the tab index of the selected component

paintTabBackground

protected void paintTabBackground(Graphics g,
                                  int tabPlacement,
                                  int tabIndex,
                                  int x,
                                  int y,
                                  int w,
                                  int h,
                                  boolean isSelected)
Parameters:
g
tabPlacement
tabIndex
x
y
w
h
isSelected

paintTabBorder

protected void paintTabBorder(Graphics g,
                              int tabPlacement,
                              int tabIndex,
                              int x,
                              int y,
                              int w,
                              int h,
                              boolean isSelected)
this function draws the border around each tab note that this function does now draw the background of the tab. that is done elsewhere

Parameters:
g
tabPlacement
tabIndex
x
y
w
h
isSelected

paintText

protected void paintText(Graphics g,
                         int tabPlacement,
                         Font font,
                         FontMetrics metrics,
                         int tabIndex,
                         String title,
                         Rectangle textRect,
                         boolean isSelected)
Parameters:
g
tabPlacement
font
metrics
tabIndex
title
textRect
isSelected

rotateInsets

protected static void rotateInsets(Insets topInsets,
                                   Insets targetInsets,
                                   int targetPlacement)
Parameters:
topInsets
targetInsets
targetPlacement

selectAdjacentRunTab

protected void selectAdjacentRunTab(int tabPlacement,
                                    int tabIndex,
                                    int offset)
Parameters:
tabPlacement
tabIndex
offset

selectNextTab

protected void selectNextTab(int current)
Parameters:
current

selectNextTabInRun

protected void selectNextTabInRun(int current)
Parameters:
current

selectPreviousTab

protected void selectPreviousTab(int current)
Parameters:
current

selectPreviousTabInRun

protected void selectPreviousTabInRun(int current)
Parameters:
current

setRolloverTab

protected void setRolloverTab(int index)
Sets the tab the mouse is currently over to index. 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.

Parameters:
index - Index of the tab the mouse is over.

setVisibleComponent

protected void setVisibleComponent(Component component)
Parameters:
component

shouldPadTabRun

protected boolean shouldPadTabRun(int tabPlacement,
                                  int run)
Parameters:
tabPlacement
run

shouldRotateTabRuns

protected boolean shouldRotateTabRuns(int tabPlacement)
Parameters:
tabPlacement

tabForCoordinate

public int tabForCoordinate(JTabbedPane pane,
                            int x,
                            int y)
Returns the tab index which intersects the specified point in the JTabbedPane's coordinate space.

Overrides:
tabForCoordinate in class TabbedPaneUI
Parameters:
pane
x
y

uninstallComponents

protected void uninstallComponents()
Removes any installed subcomponents from the JTabbedPane. Invoked by uninstallUI.


uninstallDefaults

protected void uninstallDefaults()

uninstallKeyboardActions

protected void uninstallKeyboardActions()

uninstallListeners

protected void uninstallListeners()

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI
Parameters:
c


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.