Ok so lets say I have any GUI that needs its contents changed while it is running, so that it will re-display the new contents. An example would be a JTable that just lists things from an ArrayList. So if I had an ArrayList<GroceryList> my JTable might have
But once the user highlights 'crackers' and clicks delete, I want the JTable to re-display and just say Cheese. I have been doing this by doing frame.setVisible(false) and then using createAndShowGUI(), but this does not seem to work as planned. Note that my JFrame is a static variable and that createAndShowGUI is invoked using invokeLater() and new Runnable like Java Sun suggests.