I have to make class, use case, and sequence diagrams. The first two are easy, but I'm having trouble grasping the last one.
Project: A table in a SQL database has students records. A Java GUI should display the contents of the table. It should allow users to 1) refresh (requery) the data, 2) add a new record, 3) delete a record, and 4) update a record. I have to make sequence diagrams for each of those four actions.
Here's a description of how adding works: The class MainFrame.java has a JButton named "addButt." addButt has a listener that instantiates AddFrame.java. AddFrame has three JButtons for Undergraduate, Graduate, and PartTime (three sub-classes of Student.java). The three buttons listeners simply make certain JTextAreas visible. AddFrame also has a JButton "submitButt". submitButt's listener instantiates a new UnderGraduate, Graduate, or PartTime object and calls its add() method. It passes the contents of the JTextAreas to add(). The add() method executes a SQL query that inserts the parameters into the table.
Edit: The diagram (a pdf file) is in the link below. Does the sequence diagram correspond to the description above?
Here's a link to some of the class files in question.