Searched refs:tabPane (Results 1 - 10 of 10) sorted by relevance

/openjdk7/jdk/test/javax/swing/JTabbedPane/6416920/
H A Dbug6416920.java64 tabPane = new JTabbedPane();
65 tabPane.setSize(100, 0);
66 tabPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/
H A DWindowsTabbedPaneUI.java75 tabPane.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, managingFocusForwardTraversalKeys);
81 tabPane.setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, managingFocusBackwardTraversalKeys);
87 tabPane.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, null);
88 tabPane.setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS, null);
103 if ( (oldRolloverTab >= 0) && (oldRolloverTab < tabPane.getTabCount()) ) {
104 r1 = getTabBounds(tabPane, oldRolloverTab);
107 r2 = getTabBounds(tabPane, index);
111 tabPane.repaint(r1.union(r2));
113 tabPane.repaint(r1);
116 tabPane
[all...]
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaTabbedPaneContrastUI.java59 final Color color = tabPane.getForegroundAt(tabIndex);
62 if (tabPane.getSelectedIndex() == tabIndex) {
64 boolean enabled = tabPane.isEnabled() && tabPane.isEnabledAt(tabIndex);
67 AquaUtils.paintDropShadowText(g2d, tabPane, font, metrics, textRect.x, textRect.y, 0, 1, textColor, shadowColor, title);
74 SwingUtilities2.drawString(tabPane, g2d, title, textRect.x, textRect.y + metrics.getAscent());
105 if (!tabPane.isEnabled()) return State.DISABLED;
H A DAquaTabbedPaneCopyFromBasicUI.java52 protected JTabbedPane tabPane; field in class:AquaTabbedPaneCopyFromBasicUI
191 return tabPane.getTabComponentAt(i);
215 this.tabPane = (JTabbedPane)c;
234 this.tabPane = null;
248 if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) {
261 return (tabPane.getLayout() instanceof TabbedPaneScrollLayout);
273 tabScroller = new ScrollableTabSupport(tabPane.getTabPlacement());
274 tabPane.add(tabScroller.viewport);
281 for (int i = 0; i < tabPane.getTabCount(); i++) {
282 final Component tabComponent = tabPane
[all...]
H A DAquaTabbedPaneUI.java74 tabPane.addMouseMotionListener((MouseMotionListener)mouseListener);
81 if (tabPane.getFont() instanceof UIResource) {
84 tabPane.setFont(UIManager.getFont("TabbedPane.smallFont"));
90 tabPane.setOpaque(false);
132 final int tabPlacement = tabPane.getTabPlacement();
133 final int selectedIndex = tabPane.getSelectedIndex();
140 final boolean active = tabPane.isEnabled();
141 final boolean frameActive = AquaFocusHandler.isActive(tabPane);
142 final boolean isLeftToRight = tabPane.getComponentOrientation().isLeftToRight() || tabPlacement == LEFT || tabPlacement == RIGHT;
250 boolean shouldFlip = !AquaUtils.isLeftToRight(tabPane);
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthTabbedPaneUI.java119 return (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT);
127 updateStyle(tabPane);
191 tabPane.addPropertyChangeListener(this);
200 tabPane.removePropertyChangeListener(this);
208 SynthContext context = getContext(tabPane, ENABLED);
280 updateStyle(tabPane);
299 if (!tabPane.isEnabled()) {
303 int tabIndex = tabForCoordinate(tabPane, e.getX(), e.getY());
304 if (tabIndex >= 0 && tabPane.isEnabledAt(tabIndex)) {
305 if (tabIndex == tabPane
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicTabbedPaneUI.java59 protected JTabbedPane tabPane; field in class:BasicTabbedPaneUI
217 this.tabPane = (JTabbedPane)c;
236 this.tabPane = null;
250 if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) {
263 return (tabPane.getLayout() instanceof TabbedPaneScrollLayout);
275 tabScroller = new ScrollableTabSupport(tabPane.getTabPlacement());
276 tabPane.add(tabScroller.viewport);
283 for (int i = 0; i < tabPane.getTabCount(); i++) {
284 Component tabComponent = tabPane.getTabComponentAt(i);
298 tabPane
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalTabbedPaneUI.java73 if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) {
123 int currentRun = getRunForTab( tabPane.getTabCount(), tabIndex );
124 int lastIndex = lastTabInRun( tabPane.getTabCount(), currentRun );
126 boolean leftToRight = MetalUtils.isLeftToRight(tabPane);
127 int selectedIndex = tabPane.getSelectedIndex();
180 tabPane.getTabCount(), selectedIndex)) {
216 tabPane.getTabCount(), selectedIndex)) {
259 if (tabPane.getSelectedIndex()==tabRuns[currentRun+1]) {
297 Rectangle lastTabBounds = getTabBounds( tabPane, tabPane
[all...]
/openjdk7/jdk/test/javax/swing/JTabbedPane/6670274/
H A Dbug6670274.java87 return tabPane;
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifTabbedPaneUI.java161 g.setColor(isSelected? tabPane.getBackgroundAt(tabIndex) : unselectedTabBackground);
239 if (tabPane.hasFocus() && isSelected) {

Completed in 460 milliseconds