Search in sources :

Example 1 with JTableLocation

use of org.fest.swing.driver.JTableLocation in project android by JetBrains.

the class ThemeEditorTableCellWriter method startCellEditing.

/** {@inheritDoc} */
@Override
public void startCellEditing(@NotNull final JTable table, final int row, final int column) {
    final JTableLocation location = location();
    execute(new GuiTask() {

        @Override
        protected void executeInEDT() throws Throwable {
            scrollToCell(table, row, column, location);
        }
    });
    Rectangle cellBounds = location.cellBounds(table, row, column);
    robot.click(table, cellBounds.getLocation());
}
Also used : GuiTask(org.fest.swing.edt.GuiTask) JTableLocation(org.fest.swing.driver.JTableLocation)

Aggregations

JTableLocation (org.fest.swing.driver.JTableLocation)1 GuiTask (org.fest.swing.edt.GuiTask)1