{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CreatePanel - here is an example button1 = new...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// Assignment #: 6 // Name: To be completed // StudentID: To be completed // Lecture: To be completed // Description: To be completed / import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; i public class CreatePanel extends JPanel { private Vector petList; private JButton button1; private SelectPanel sPanel; public CreatePanel(Vector petList, SelectPanel sPanel) { this.petList = petList; this.sPanel = sPanel; // orgranize components here
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // here is an example button1 = new JButton("Create a Pet"); add(button1); } private class ButtonListener implements ActionListener { public void actionPerformed(ActionEvent event) { //when the button is pushed, the pet type //should be added to the list. This is also where //errors are handled. } //end of actionPerformed method } //end of ButtonListener class } //end of CreatePanel class...
View Full Document

{[ snackBarMessage ]}