public final class JTableColumnByIdentifierQuery extends Object
JTable
whose identifier matches the given one.JTable.getColumn(Object)
,
TableColumn.getModelIndex()
Modifier and Type | Method and Description |
---|---|
static int |
columnIndexByIdentifier(JTable table,
Object identifier)
Returns the index of a column in a
JTable whose identifier matches the given one. |
@RunsInCurrentThread public static int columnIndexByIdentifier(@Nonnull JTable table, @Nonnull Object identifier)
Returns the index of a column in a JTable
whose identifier matches the given one.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
table
- the given JTable
.identifier
- the column identifier.Copyright © 2014–2017 AssertJ. All rights reserved.