Question: uestion: PROGRAM INCOMPLETE BY ME import javax.swing.*; import java.awt.*; public class checkbook{ static ... PROGRAM INCOMPLETE BY ME import javax.swing.*; import java.awt.*; public class checkbook{

uestion: PROGRAM INCOMPLETE BY ME import javax.swing.*; import java.awt.*; public class checkbook{ static ...

uestion: PROGRAM INCOMPLETE BY ME import javax.swing.*; import java.awt.*; public class checkbook{

static ... PROGRAM INCOMPLETE BY ME import javax.swing.*; import java.awt.*; public class

checkbook{ static String[]s={"Create a New Account","Load transaction from file","Add new transaction", "Search

transaction","Sort transaction","View/Delete transaction","Save transaction to a file","Exit"}; public static void main(String[] args)

PROGRAM INCOMPLETE BY ME

import javax.swing.*;

import java.awt.*;

public class checkbook{

static String[]s={"Create a New Account","Load transaction from file","Add new transaction",

"Search transaction","Sort transaction","View/Delete transaction","Save transaction to a file","Exit"};

public static void main(String[] args) {

JFrame frm = new JFrame("checkbook");

Container contentPane = frm.getContentPane();

contentPane.setLayout(new GridLayout(0,1));

JLabel l=new JLabel ("Use The Buttons below To Manage Transactions", JLabel.CENTER);

contentPane.add(l);

JLabel ll= new JLabel("Account Name"+JLabel.CENTER+" Balance");

contentPane.add(ll);//

// JTextArea textArea=new JTextArea("",5,20);//

// JScrollPane scrollPane=new JScrollPane(ll);//

// scrollPane =new JScrollPane(l); //1

//contentPane.add(scrollPane,BorderLayout.CENTER); //2

JPanel row1= new JPanel (new GridLayout (0,1));

JTextField tf= new JTextField ("0",30);

tf.setHorizontalAlignment (JTextField.CENTER);

//tf.setHorizontalAlignment(JTextField.LEFT);

//tf.setHorizontalAlignment(JTextField.RIGHT);

row1.add(tf); //making row1

contentPane. add(row1); //add panel to

//paper

JPanel row2 = new JPanel(new GridLayout(0,4,1,1));

for (int i=0; i

row2.add(new JButton(""+s[i]));

}

contentPane.add(row2);

JPanel row3 = new JPanel(new GridLayout(0,4,1,1));

for (int i=4; i

row3.add(new JButton(""+s[i]));

}

contentPane.add(row3);

frm.pack();

frm.setSize(750,375);

//frm.setResizable(false);

frm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

frm.setVisible(true);

}

}

Show transcribed image text1 /4 Ia this assignment, you are to design a lava program to record checking account transactions and to keep track of the amount of money in your checking account. A transaction record should include the following information: Transaction date, a string of characters Transaction type; Deposit, Automatic deposit, ATM Withdrawal,Check, or Debit Card Check No., an integer Transaction description, a string of characters Amount, a floating point number Your program should allow an user to do the following 1. Create a new account 2 Load transactions from a file 3. Add new transactions 4. Search transactions (optional) 5. Sort transactions (optional) 6. View/Delete transactions 7. Save transactions to a file User interface requirement Your program should have a GUI closely similar to the following Checkbook Use The Buttons below To Manage Transactions

1 /4 Ia this assignment, you are to design a lava program to record checking account transactions and to keep track of the amount of money in your checking account. A transaction record should include the following information: Transaction date, a string of characters Transaction type; Deposit, Automatic deposit, ATM Withdrawal,Check, or Debit Card Check No., an integer Transaction description, a string of characters Amount, a floating point number Your program should allow an user to do the following 1. Create a new account 2 Load transactions from a file 3. Add new transactions 4. Search transactions (optional) 5. Sort transactions (optional) 6. View/Delete transactions 7. Save transactions to a file User interface requirement Your program should have a GUI closely similar to the following Checkbook Use The Buttons below To Manage Transactions 1 /4 Ia this assignment, you are to design a lava program to record checking account transactions and to keep track of the amount of money in your checking account. A transaction record should include the following information: Transaction date, a string of characters Transaction type; Deposit, Automatic deposit, ATM Withdrawal,Check, or Debit Card Check No., an integer Transaction description, a string of characters Amount, a floating point number Your program should allow an user to do the following 1. Create a new account 2 Load transactions from a file 3. Add new transactions 4. Search transactions (optional) 5. Sort transactions (optional) 6. View/Delete transactions 7. Save transactions to a file User interface requirement Your program should have a GUI closely similar to the following Checkbook Use The Buttons below To Manage Transactions

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!