Synchronize a jCombobox with a MySQL Table
I've created a database application with the NetBeans GUI-Designer. GUI with Comboboxes (Bound to MySQL databasetables user and team): on Button new -> jDialog - executes a query to store a new user in database: Problem: Combobox is updated at the programstart but not while running the program. Question: Is it possible to update the entries in my combobox directly when a new user or team is saved? And how could I Implement this? Edit: Here is what I do when clicking on the saveButton in the JDialog : int k=st.executeUpdate( "INSERT INTO User (username) " + " VALUES ('"+ name + "')"); //Here I