Serializablepublic class TabSet extends Object implements Serializable
 Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans has been added to the java.beans package. Please see XMLEncoder.
| Constructor | Description | 
|---|---|
| TabSet | Creates and returns an instance of TabSet. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | equals | Indicates whether this  TabSetis equal to another one. | 
| TabStop | getTab | Returns the TabStop at index  index. | 
| TabStop | getTabAfter | Returns the Tab instance after  location. | 
| int | getTabCount() | Returns the number of Tab instances the receiver contains. | 
| int | getTabIndex | Returns the index of the TabStop  tab, or -1 iftabis not contained in the receiver. | 
| int | getTabIndexAfter | Returns the index of the Tab to be used after  location. | 
| int | hashCode() | Returns a hashcode for this set of TabStops. | 
| String | toString() | Returns the string representation of the set of tabs. | 
public TabSet(TabStop[] tabs)
tabs - the TabStops to initialize the TabSetpublic int getTabCount()
public TabStop getTab(int index)
index. This will throw an IllegalArgumentException if index is outside the range of tabs.index - which TapStop to returnindex
public TabStop getTabAfter(float location)
location. This will return null if there are no tabs after location.location - location to find a Tab afterlocation
public int getTabIndex(TabStop tab)
tab, or -1 if tab is not contained in the receiver.tab - the TabStop to findtab, or -1 if tab is not contained in the receiver.public int getTabIndexAfter(float location)
location. This will return -1 if there are no tabs after location.location - location to find a Tab afterlocation
public boolean equals(Object o)
TabSet is equal to another one.public int hashCode()
public String toString()
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/text/TabSet.html