CreatePanel.java - Assignment 6 Name zhang yipeng StudentID...

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

// Assignment #: 6// Name: zhang yipeng// StudentID: 1209849482// Lecture: mwf9:40 // Description: CreatePanel extends JPanel defined in the javax.swing package. It should contain at least the following instance variable:import java.awt.*;import java.awt.event.*;import javax.swing.*;import java.util.*;public class CreatePanel extends JPanel{private Vector athleteList;private JButton button1;private CountPanel cPanel;private JLabel FirstNameB,LastNameB,sportB;private JTextArea firstName,lastName,sport,AhleteInfo;private JLabel message;private JScrollPane scroll;//Constructor initializes components and organize them using certain layoutspublic CreatePanel(Vector athleteList, CountPanel cPanel){this.athleteList = athleteList;this.cPanel = cPanel;this.setLayout(null);//organize components hereFirstNameB = new JLabel("First Name");add(FirstNameB);FirstNameB.setBounds(1,70,100,40);LastNameB = new JLabel("Last Name");add(LastNameB);LastNameB.setBounds(1,120,100,40);sportB = new JLabel("sport");add(sportB);sportB.setBounds(1,170,100,40);LastNameB = new JLabel("Last Name");

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture