ClickColumnHeader Method (JTableHeader)

Class

JTableHeader class

Action

Clicks the column header of the table.

Syntax

tableHeader.ClickColumnHeader(column, [button, position, modifiers])
Variable Description
column The name or index of the column. LISTITEM.
button Optional.The button used for clicking. Valid values are: left (=1, the default value), right (=2), middle (=3). INTEGER.
position Optional.The clicked position within the column header. (default: column header center). POINT.
modifiers Optional.The modifier keys (Alt, Shift and Ctrl) to press while clicking the column header. Default: Don't use modifier keys. MODIFIERKEYSTATE.

Examples

TableHeader.ClickColumnHeader("Product Name", 1, {10, 10}, MOD_CTRL)
TableHeader.ClickColumnHeader(4, 1, {10, 10}, MOD_CTRL)
TableHeader.ClickColumnHeader("Product Name")
TableHeader.ClickColumnHeader(4)