I've been given an assignment where I have to develop a Java applications making use of the javax.swing UI. The basic spec is:
-There must be 4 classes: (The stuff in brackets are what it must do/contain)
Person (Contains info on the person, name/email etc)
Contacts (Array of contacts)
PersonPanel (extends JPanel)
ContactsGUI (extends JFrame and implements appropriate listeners)
Now it's the last 2 parts I dont understand, the GUI basically needs to have one window, a toolbar at the top and bottom with some simple buttons (next contact/add contact etc) with a picture of the contacts and details in the middle. I understand the very basics of java and the swing interface but I cant seem to find a tutorial or something similar that has 2 classes to create this one window. It doesn't make sense to me.
Could someone either explain to me what kind of thing I should have in each of the latter classes, or point me in the direction of a good guide?
Thanks very much.
-There must be 4 classes: (The stuff in brackets are what it must do/contain)
Person (Contains info on the person, name/email etc)
Contacts (Array of contacts)
PersonPanel (extends JPanel)
ContactsGUI (extends JFrame and implements appropriate listeners)
Now it's the last 2 parts I dont understand, the GUI basically needs to have one window, a toolbar at the top and bottom with some simple buttons (next contact/add contact etc) with a picture of the contacts and details in the middle. I understand the very basics of java and the swing interface but I cant seem to find a tutorial or something similar that has 2 classes to create this one window. It doesn't make sense to me.
Could someone either explain to me what kind of thing I should have in each of the latter classes, or point me in the direction of a good guide?
Thanks very much.