If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Getting a GUI to run

Dear Java General Group,

I am trying to fix my java gui code and am looking for help. The buttons
seem to be working, I am trying to create a database so that I can add and
edit items. How can I get my GUI to function correctly? any suggestions or
different ways to write this code. can you send them to emanfl@hotmail.com
or post here

Re: Getting a GUI to run

Exit allows the user to terminate the program, Add to add a new item, Delete
allows the user to delete the current selected item, good-fair-poor allows
the user to rate the item. Update allows the user to update the current select
item with the item displayed data. View allows the user to view the descriptive
text which describes the item. When in View mode the text shown should not
be editable. Edit allows the user to add or edit the text into a textarea
popup dialog. The dialog is shown when the user presses the Edit button.

The associated attributes:

Item Name
Number of
Description Text
$ Value
Current Location
Date of Purchase
Condition

The user should be allowed to select an item from the item list displayed
in a JScrollPane in the left portion of the application window. In the right
portion of the application window the current
attribute values for the item should be displayed in associated textfields
that identify the item. Condition field (radio button group) should allow
one selection (Good, Fair, or Poor). Initial
window is blank. To add a new item, user must select “File->New”. This causes
all textfields and radiobuttons to be cleared and the cursor to be positioned
in the “Item” textfield. All textfields need to editable and vector used
to hold item objects. For each item in your Item Vector I want to create
instances of ItemObjects and call “set” methods on the objects to set values
for attributes within the object. When values are
needed to compare.

To update an item, the user must first select a item on the list, change
attribute values by entering data into textfields, then selecting “Tools->Update”.
To delete "Tools->Delete” that process is in reverse. When an item is deleted
from the list, the next item in the Item Vector should be displayed as the
current item.

Could you send me what you would do in this situation to get this GUI to
work like it should? I'm at at a stuck point.