My select query returns 2 columns, ID and Text
I want to display the value of Text in an Jlist which works :)
When a user clicks on the specific Jlist item, this item needs to be deleted from the database. To do this safely I need to know the ID.
How do I get to know the ID of that specific item of my JList? Can I store this with the Jlist somehow?