Computer Science Canada help using JPanel and JList |
Author: | 939distrikt [ Sun Jan 20, 2008 11:55 pm ] |
Post subject: | help using JPanel and JList |
I'm programming an application for my grade 12 CPT. It takes a list of information and displays it in a JList inside a JPanel using a GridBagLayout. When the user selects an item in the list, then hits an "edit" button, a form pops up with the info that was selected, they can make changes, then they hit next. the data is then saved to a file. I'm having problems updating the edited info in the JList. I tried setContent but it does not update the JList when i call it. Does anyone know the best method for doing so, or a resource i can look into about this? Thanks a lot in advance! |
Author: | McKenzie [ Mon Jan 21, 2008 9:22 pm ] |
Post subject: | Re: help using JPanel and JList |
Here is the place for all the details: http://java.sun.com/docs/books/tutorial/uiswing/components/list.html |