Results 1 to 2 of 2
Thread: Problem with GUIS
- 02-17-2011, 05:28 AM #1
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,069
- Blog Entries
- 3
- Rep Power
- 7
Problem with GUIS
I have been working on this issue for a day now and I can't figure it out.
I have a list of data which is displayed in a gui, I allow you to search for items, and if something is found it pops up a new window and populates the new list with the found items and draws the gui. I have a listener for the list so if you double click it, it opens another gui which allows you to edit the chosen item. My problem is changing the list in the original window and I am not quite sure how. I also supply a delete option in this final window, I tried passing along the original list to edit window, removing the item from that list and my plan is to update the original window with this new list. I really can't figure it out, Im sorry if I am confusing, I am having a hard time trying to think this problem out.
I defined a method called refresh in the original gui which is designed to take a vector and set the guis vector to the input and update a list and this is where I am getting the null pointer exception. I tried creating an instance of the original window and refresh on it with the new list. I can post code, but it's about 1000 lines and fairly sloppy since this is my first big project. I apologize if I am being unclear. I am trying my best to solve this problem and can't seem to think of any workable solution.
- 02-17-2011, 07:18 AM #2
Member
- Join Date
- Feb 2011
- Location
- Ahmedabad
- Posts
- 36
- Rep Power
- 0
reply to problem with guis
you can use JPA for this as follow
add GridPanel and then add Table Component in to the GridPanel and bind it to the users array (added via walk through Binding Database Table to a Table Component Using JPA)
for the example you can refer following url
JPA Add/Update/Delete
Similar Threads
-
NOOB needs help with buttons and events, GUIs.
By simonsays415 in forum New To JavaReplies: 12Last Post: 07-22-2010, 05:02 AM -
Can you create two GUIs?
By SNPTT in forum New To JavaReplies: 4Last Post: 05-18-2010, 11:08 AM -
guis and php
By paddala in forum Advanced JavaReplies: 1Last Post: 02-18-2010, 02:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks