I can easily add listeners to the actors within a table, and they will fire events, but if I want an entire to table to have 1 listener and do not care to have differentiated effects depending on where it is touched, I want to be able to add the listener directly to the table. However, it is not firing, at all. I have turned on debug and tried pressing within the labels in the table or outside of them (still in the table, like on padding), but to no avail.

This is how I add the create the table:

il = new InfoListener();// extends ClickListener
info = new Table(skin);

// later on I have a method that adds things to the table

info.setSize(info.getPrefWidth(), info.getPrefHeight());

It is a dynamic table (i.e. I change it's children when necessary), but that shouldn't make a difference. How do I have the table fire touch events?


1 Answer 1


Wow wow wow. So clear() removes all children, actions, and listeners...

All I needed to change was clear() to clearChildren()...


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .