# Programmatically Set Selected Cell in Power Table

**URL:** <https://forum.inductiveautomation.com/t/programmatically-set-selected-cell-in-power-table/21749>\
**Category:** Ignition\
**Created:** [January 8, 2019, 6:44pm UTC](https://forum.inductiveautomation.com/t/programmatically-set-selected-cell-in-power-table/21749 "2019-01-08T18:44:05Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 8, 2019, 7:37pm UTC](https://forum.inductiveautomation.com/t/programmatically-set-selected-cell-in-power-table/21749/6 "2019-01-08T19:37:03Z")

</div>

To select a single cell, make sure you have column selection allowed, then set a specific row and column interval:  
[https://docs.oracle.com/javase/7/docs/api/javax/swing/JTable.html#setRowSelectionInterval(int,%20int)](https://docs.oracle.com/javase/7/docs/api/javax/swing/JTable.html#setRowSelectionInterval(int,%20int))  
[https://docs.oracle.com/javase/7/docs/api/javax/swing/JTable.html#setColumnSelectionInterval(int,%20int)](https://docs.oracle.com/javase/7/docs/api/javax/swing/JTable.html#setColumnSelectionInterval(int,%20int))

---

_[View the full topic](https://forum.inductiveautomation.com/t/programmatically-set-selected-cell-in-power-table/21749)._
