Updating a table dynamically

Present your own projects here, be they WIPs, betas or finished products. Get feedback from others and help each other out with some lovely testing.

Updating a table dynamically

Postby Babu » Wed Mar 13, 2019 7:54 am

I'm currently creating an inventory system in which the user can select an item from their inventory list collection, and the icon on the right will update.

As of now, I've implemented a ClickListener to get the current selected item from the inventory list, and called the .getImage() method that I created to get the icon of the selected item.

I used table.add(image); to add the icon to the table. However, when the icon is added to the table, it fills up that space, and another column is created when the user selects on another item.

How do I get the image area to update when the user selects another item, rather than creating another column to the right?
Babu
 
Posts: 2
Joined: Wed Mar 13, 2019 7:51 am

Return to Showcase

Who is online

Users browsing this forum: No registered users and 1 guest