CreatePanel.java - Assignment 6 Name Arun Das(Teaching...

This preview shows page 1 - 2 out of 3 pages.

// Assignment # : 6 // Name : Arun Das (Teaching Assistant) // StudentID : XXXXXXXXXX // Lecture : T TH 12:00-1:15 PM // Arizona State University CSE205 // Description: The CreatePanel class contains the elements necessary to // create a Book entry (Title and prublisher) and add it to // the list of Books. import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; public class CreatePanel extends JPanel { //vector contains all books private Vector<Book> bookList; //submit button private JButton button1; //review panel private ReviewPanel rPanel; //two labels besides textfeilds private JLabel bookTitle; private JLabel publisher; //notification message private JLabel message; //title text private JTextField titleText; //publisher text private JTextField publishText; //display area private JTextArea BookInfo; //scroll panel for display area private JScrollPane scroll; //Constructor initializes components and organize them using certain layouts public CreatePanel(Vector<Book> bookList, ReviewPanel rPanel) { this.bookList = bookList; this.rPanel = rPanel;

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture