Selectively removing messages goes against the intended
publish/subscribe workflow. Prefer explicitly handling
all received messages, without selectively trying
to modify the queue.
Use Table.getSelectedRowKey() instead. Using the row
index is an unreliable way of identifying towsr, as
sorting the table will actually change the row order.