hey
i have a little problem with this app, and i hope somebody can help me. i have to create an application that watch over your appointments.
i have the JFrame up and running, but i have some issues with the buttons:
when "New appointment" clicks, the data for the new event - Description, Content and Time- get written in.
the Description and Time get shown in the window. the appointments get shown with a JList that have a DefaultListModel.
here is a class-diagram:
Appointment:
-description
-content
-time
*Appointment() constructor
*Appointment() constructor
*setDescription()
*setContent()
*setTime()
*getDescription()
*getContent()
*getTime()
*toString()
*equals()
*compareTo()
AppointmentList:
-serialVersionUD
-list
-listData
*AppoinmentList() constructor
*valueChanged()
*main()
+ButtonPanel
AppointmentData
-serialVersionUD
*AppointmentData() constructor
*newAppointment()
*newAppointment()
*deletAppointment()
*getAppointment()
in the class AppointmentList is list a JList and listData is an instance off the class AppointmentData that inherit from DefaultListModel. list is connected to listData the normal way.
when "Delete appointment" get clicked, the marked choice get removed, but if no choice is marked, it should ask for the description.
when "Show appointment" get clicked, it shows all the data of the chosen appointment, but if no choice is marked it should ask for the description.
when "Changed appointment" get clicked, it ask about any updates or changes for the marked appointment, but if there is no marked appointment it should ask for the description. second it should ask for the changes. if its given a description for a new appointment, but this appointment already exist, the new appointment should not get registered.
if there is given a description in current with delete, show or changed of an appointment, and this appointment does not exist it would show a message of this.
when "Quit" get clicked the app shouts down.
the "Cancel" button in the dialog-box should be up and running, and give a message if clicked.
i hope somebody can help me with this...
i have written some of it, i can post it if you ask for it..