I'm trying to get this to work, but i can't seem to do it on my own:
In my main screen of my application i have a JComboBox where a user can select a "team", underneath the combobox should be a table with all the players of the selected team.
I think the current implementation of the table is less than "clean" but it's working at the best i got it so far.
the current code gives me the players of the team, but the table gets added to the frame instead of replacing it like i want it to.
My currently used code:
for the JCombobox:
i'm creating the tablemodel in the actionlistener ong the combobox like this:
(i translated the variables for easier reading, i think i got em all...)
if someone would be willing to give me a push in the right direction, or just point out where i'm going wrong, that would be great,