CreatePanel.java - Assignment Name StudentID Lecture...

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

// Assignment #: 6// Name: Punit Denani// StudentID: 1210836234// Lecture: MWF 10:30// Description: creates a Create panel in the tabbed window. It adds the projects entered to the project list and displays the list of projects on the sideimport java.awt.*;import java.awt.event.*;import javax.swing.*;import java.util.*;public class CreatePanel extends JPanel{private Vector projectList;private JButton button1;private ProjectSpendingPanel spendingPanel;private JLabel pName,message;private JLabel pNumber;private JLabel pLocation;private JLabel iFunding;private JTextField name,number,location,funding;private JPanel leftPanel,rightPanel,subPanel1,subPanel2;private JTextArea area;private JScrollPane scroll;//Constructor initializes components and organize them using certain layoutspublic CreatePanel(Vector projectList, ProjectSpendingPanel spendingPanel){this.projectList = projectList;this.spendingPanel = spendingPanel;//organize components herethis.setLayout(new GridLayout(1,2));leftPanel = new JPanel(new GridLayout(3, 1));message = new JLabel("");message.setForeground(Color.red);

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture