I made a class that extends jframe. I have a border layout for the jframe and some components and a jpanel with absolute layout to hold some buttons and a jcombobox. The combo box holds some values from a table. And the table takes the values from a mysql query. I delete or add some records through the buttons and then I update the table.
All works great except the combo box that doesn't refresh the values. In order to work I have to close the jframe and open it again. I read many articles and tutorials about repaint etc... but nothing seems to work in my case. The action listener is also the same class that extends the jframe.
Any way to do it ? Please keep it simple as I am new to java programing. Thank you!