equal
deleted
inserted
replaced
311 * @return all of the <code>ChangeListener</code>s added or an empty |
311 * @return all of the <code>ChangeListener</code>s added or an empty |
312 * array if no listeners have been added |
312 * array if no listeners have been added |
313 * @since 1.4 |
313 * @since 1.4 |
314 */ |
314 */ |
315 public ChangeListener[] getChangeListeners() { |
315 public ChangeListener[] getChangeListeners() { |
316 return (ChangeListener[])listenerList.getListeners( |
316 return listenerList.getListeners(ChangeListener.class); |
317 ChangeListener.class); |
|
318 } |
317 } |
319 |
318 |
320 /** |
319 /** |
321 * Sends a {@code ChangeEvent}, with this {@code JTabbedPane} as the source, |
320 * Sends a {@code ChangeEvent}, with this {@code JTabbedPane} as the source, |
322 * to each registered listener. This method is called each time there is |
321 * to each registered listener. This method is called each time there is |
2060 * Do initialization if the AccessibleJTabbedPane |
2059 * Do initialization if the AccessibleJTabbedPane |
2061 * has been instantiated. We do not want to load |
2060 * has been instantiated. We do not want to load |
2062 * Accessibility classes unnecessarily. |
2061 * Accessibility classes unnecessarily. |
2063 */ |
2062 */ |
2064 AccessibleContext ac; |
2063 AccessibleContext ac; |
2065 ac = ((Accessible) component).getAccessibleContext(); |
2064 ac = component.getAccessibleContext(); |
2066 if (ac != null) { |
2065 if (ac != null) { |
2067 ac.setAccessibleParent(this); |
2066 ac.setAccessibleParent(this); |
2068 } |
2067 } |
2069 } |
2068 } |
2070 } |
2069 } |