Results 1 to 2 of 2
  1. #1
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Richmond, Virginia
    Blog Entries
    Rep Power

    Default 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.

  2. #2
    Join Date
    Feb 2011
    Rep Power

    Default 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

  1. NOOB needs help with buttons and events, GUIs.
    By simonsays415 in forum New To Java
    Replies: 12
    Last Post: 07-22-2010, 05:02 AM
  2. Can you create two GUIs?
    By SNPTT in forum New To Java
    Replies: 4
    Last Post: 05-18-2010, 11:08 AM
  3. guis and php
    By paddala in forum Advanced Java
    Replies: 1
    Last Post: 02-18-2010, 02:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts