Java GUI with repaint problems... should be simple.
Posted on 2009-05-20
ok, I am running into a very stupid problem, and most likely because I am a bit rusty with Java.
I have two forms, both designed in NetBeans...
first one have a JList and a combo box. the combo box, on properties change, triggers a method call, which then would go to a ODBC connector, asking for information and add those information to the JList box.
i have another button on this form, basically, it is an edit button, which allows me to select items from the JList box and edit them.
Due to the complexity, the edit button pops up a new Jframe, with its own input boxes. At the end of the day, there is a 'DONE" button on this new JFrame, and when pushed, it updates the Database via ODBC.
Now the problem arises, for some strange reasons, I cannot update the jList box on my first form.
I have passed the frame along and called it localCopyMainWindow
and i've called it to repaint(), I've even attempted to call the method.
(A side note, if I leave an JOptionPane.showMessageBox in the method, it works nicely, just an annoying popup)