Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Re: Pls Help me run bank java application

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Pls Help me run bank java application

    Create a new project in Eclipse called Assignment 2.
    Create a package within this project called bank. To this package add the classes Account, Bank, CreditAccount, SavingsAccount and Customer.
    Create a second package called person. To this package add the classes Person and Address.
    Make sure you use the classes supplied and do not use your own. Several changes have been made to these classes. For example, the Date class is no longer used (thus Customer has no date of birth). Each new Customer has exactly one SavingsAccount and one CreditAccount (created when the Customer object is created). Make sure you examine each of these classes closely.
    Task 1
    Task 1 involves setting up the controls for the main JFrame window. Other windows (dialog boxes) will be invoked from this window. They will be described in later tasks. For this task it suffices to set up the components and listeners for the main window.
    Create a package called task01.
    Create a class called TestBankApplication. This class should extend JFrame and implement ActionListener. It should contain the main method that runs the application. The window created should be the starting point for all of the functionality for your application.
    Firstly, provide an instance variable which provides an object of class Bank (from the bank package). This object should be instantiated in the constructor. Remember (from assignment 1) an instance of the Bank class has a Vector of Customer objects. We will use this Vector (I’ll just refer to it as the Vector) a lot in this assignment.
    Now add components which perform the following functionality.
    • Two radio buttons labelled ‘add customer’ and ‘list customers’. Supply a default selection when the window opens up.
    • A push button labelled ‘submit’. When this button is clicked then, depending on which radio button is selected, one of two dialogs should appear. You do not have to supply the dialogs in task 1. They will be described in later tasks.
    • A push button labelled ‘exit’. Clicking this button should allow the program to exit without saving the current contents of the vector.
    • A menu item labelled ‘open file’. Clicking this menu item will allow the user to open a currently saved file. The contents of this file should overwrite the current contents of the Bank’s contents of vectors. You do not have to supply this functionality in task 1. It will be described in a later task.
    • A menu item labelled ‘save file’. Clicking this menu item will allow the user to save the current contents of the Vector to a file. The user should supply the filename that the contents will be saved to. You do not have to supply this functionality in task 1. It will be described in a later task.
    • A menu item that performed the same functionality as the ‘exit’ push button.
    Now make your program extend ActionListener. Provide code to handle the clicking of each menu item and push button. Fully implement the functionality of the exit button.
    For the others, in task 1, it will suffice to simply have System.out.println statements which say what each button will do. For example,
    System.out.println (“The add customer dialog will appear when this button is clicked!”);
    You will provide functionality for these buttons in later tasks.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Pls Help me run bank java application

    @Harshal Soni Please start your own thread for your question. This thread is 2 years old.


    Be sure to post your code and ask specific questions about the problems you are having.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Pls Help me run bank java application

    Harshal Soni, welcome to the forums. Please do not hikack someone else's post (especially one over 2 years old) - I have moved your post.

    I highly recommend you read the Forum Rules and the link in my signature entitled "Getting Help". Posts such as this are considered homework dumps, and look as though you posted to have someone do your work for you - which is not what these forums are about. I recommend posting your attempt along with any specific questions about your code if you wish to make use of these forums.

Similar Threads

  1. Help for write Bank application in Java
    By clapton in forum Object Oriented Programming
    Replies: 1
    Last Post: March 1st, 2012, 05:55 AM
  2. Bank Application Project please help
    By mbouster in forum Paid Java Projects
    Replies: 2
    Last Post: January 5th, 2011, 06:50 AM
  3. Pls Help me run bank java application
    By chukster in forum What's Wrong With My Code?
    Replies: 4
    Last Post: September 20th, 2010, 07:28 PM
  4. Please help - Bank account application
    By brandonssss in forum What's Wrong With My Code?
    Replies: 3
    Last Post: May 2nd, 2010, 03:10 PM
  5. Create a java small class for a bank account!!?
    By jon123 in forum Object Oriented Programming
    Replies: 2
    Last Post: March 24th, 2010, 11:00 AM