ProjectSpendingPanel.java - Assignment 6 Name Punit Denani...

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

// Assignment #: 6 // Name: Punit Denani // StudentID: 1210836234 // Lecture: MWF 10:30 // Description: It creates a place where all the projects are listed and you can select any project and // add spending to that project which will update the project. // import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; //import CreatePanel.ButtonListener; import java.util.*; public class ProjectSpendingPanel extends JPanel { private JLabel label1, label2; private JButton addSpending; private JList list; private Vector projectList; private JScrollPane scroll; private JTextField textfield; private JPanel subPanel5,subPanel1,subPanel2,subPanel3,subPanel4; private String selectedProject; //Constructor initialize each component and arrange them using //certain layouts public ProjectSpendingPanel(Vector projectList) { addSpending = new JButton("Add Spending"); textfield = new JTextField(); this.projectList = projectList; label1 = new JLabel("Choose the project to specify some spending:"); label2 = new JLabel("Specify your amount to spend:");

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture