TransferPanel - //A user can choose which bank account to...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// Assignment #: 6 // Name: your name // StudentID: your id // Lecture: your lecture // Description: it needs to be filled import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.util.*; public class TransferPanel extends JPanel { private Vector accountList; //Constructor initialize each component and arrange them using //certain layouts public TransferPanel(Vector accountList) { this.accountList = accountList; // orgranize components for transfer panel } //This method refreshes the JComboBoxes with //updated vector information public void updateAccountList() { //call updateUI() for two combo boxes } //ButtonListener class listens to see the button "Transfer!" is pushed.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //A user can choose which bank account to transfer from and another account to transfer to, //then choose a transfer amount and push the "Transfer" button. //This should update both FROM and TO account balances and display them //below the "Transfer!" button //(You should make use of the toString( ) method of the Account class. ) private class ButtonListener implements ActionListener { public void actionPerformed(ActionEvent event) { // if there is no error, FROM and TO account balances // should be updated and displayed below the "Transfer!" button. } } //end of ButtonListener class } //end of TransferPanel class...
View Full Document

This note was uploaded on 11/09/2010 for the course CSE 71682 taught by Professor Nakamura during the Spring '10 term at ASU.

Ask a homework question - tutors are online