CreatePanel.java - Assignment 6 Name Brandon Benich...

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

/*Assignment #: 6Name: Brandon BenichStudentID: 1205823810Lecture: T&Th @ 3pmTime Taken: 2 hours *//** Description: */import java.awt.*;import java.awt.event.*;import javax.swing.*;import java.util.*;@SuppressWarnings("serial")public class CreatePanel extends JPanel /** Class - Is the first tab*/{ // add your instance variables including all the components used in this panel@SuppressWarnings("rawtypes")private Vector bankList;private SelectPanel sPanel;private JButton button1;private JTextField Text1;private JLabel label1;private JLabel label2;//private JTextArea areaText1;private DefaultListModel Lister;private JList list;@SuppressWarnings("rawtypes")public CreatePanel(Vector bankList, SelectPanel sPanel) /** Constructor - creates panel for first tab*/{this.bankList = bankList;this.sPanel = sPanel;// orgranize components here// here is an example of creating a buttonJPanel panel1 = new JPanel();JPanel panel2 = new JPanel();JPanel panel3 = new JPanel();panel1.setLayout(new GridLayout(1,2));panel2.setLayout(new GridLayout(3,1));label1 = new JLabel("Welcome!",JLabel.CENTER);

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture