CreatePanel - Assignment 6 Name Johrdyn Lorden StudentID...

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

// Assignment #: 6// Name: Johrdyn Lorden// StudentID: 1201666366// Lecture: MWF 1:30// Description: panel for creating petsimport java.awt.*;import java.awt.event.*;import javax.swing.*;import java.util.*;public class CreatePanel extends JPanel{private Vector petList;private JButton button1;private SelectPanel sPanel;private JPanel leftPanel;private JPanel rightPanel;private JPanel lowerPanel;private JPanel middlePanel;private JLabel petLabel;private JLabel message;private JTextField inPet;private JScrollPane scroll;private JTextArea textArea;public CreatePanel(Vector petList, SelectPanel sPanel){this.petList = petList;this.sPanel = sPanel;ButtonListener listener = new ButtonListener();setLayout(new GridLayout(1,2));//Create the left side of the applet tab 'CreatePanel'leftPanel = new JPanel();leftPanel.setLayout(new GridLayout(3,1));add(leftPanel);//Create the right side of the applet tab 'CreatePanel'rightPanel = new JPanel();add(rightPanel);//add petlist to right side of applettextArea = new JTextArea(20, 22);scroll = new JScrollPane(textArea);rightPanel.add(scroll);

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture