Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 ...

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions