ClickCell Method (JTable)

Class

JTable.

Action

Clicks the specified cell in the table.

Syntax

table.ClickCell(row, column, [button, position, modifiers])
Variable Description
row The index of the row. The value is zero-based. Integer.
column The name or index of the column. ItemIdentifier.
button Optional: The button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3). MouseButton.
position Optional: The clicked position within the table cell. If the position is omitted, the click is done in the center of the table cell. Point.
modifiers Optional: The modifier keys (Alt, Shift and Ctrl) to press while clicking the table cell. Use a modifier to click multiple table cells. Default: Don't use modifier keys. ModifierKeys.

Examples

table.ClickCell(1, "Street", MouseButton.Left, New Point(10, 10), SilkTest.Ntf.ModifierKeys.Control)
table.ClickCell(1, "Street")
table.ClickCell(1, 5)