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 10 of 10

Thread: savings and loan society

  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default savings and loan society

    Please can any one help with a code for credit and thrift society, where group of people will come together to save money, members could be given loan, and at the end of the month the whole savings should belong to someone.


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: savings and loan society

    You need to elaborate a little bit more than this I'm afraid. What exactly is it you need, is this a full blown project or just a simple class?

    If this is a project are you willing to pay someone for having this created?

    // Json

  3. #3
    Junior Member
    Join Date
    Mar 2009
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: savings and loan society

    Its a class assignment, and it has a good mark attached to it, please help...

  4. #4
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: savings and loan society

    What is it you need help on (what have you done)?

  5. #5
    Junior Member
    Join Date
    Mar 2009
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: savings and loan society

    this is how far I have gone with this project but I dont know how to read into a text field from an "xls" file
     import java.awt.*;
     import java.awt.event.*;
     import javax.swing.*;
     import java.io.*;
     
     public class thrift extends JFrame implements ActionListener{
     private JLabel label1, label2, label3;
     private JButton button1, button2, button3,button4; 
     private JTextArea result;
     
     public thrift()
     {
     super("thrift");
     
    Container container = getContentPane();
    container.setBounds(0,0,300,400);
    button1 = new JButton("Administrator");
    button1.setLocation(0,20);
    button1.addActionListener(this);
    //button1.
    button2 = new JButton("Check Status");
    button2.setLocation(0,40);
    button2.addActionListener(this);
    button3 = new JButton("Transactions");
     
    button1.setBounds(20,60,120,30);
    button2.setBounds(320,150,120,30);
    button3.setBounds(150,150,120,30);
    button3.addActionListener(this);
    button4 = new JButton("Loans");
    button4.setBounds(20,150,80,30);
    button4.addActionListener(this);
     
    result = new JTextArea();
    result.setAutoscrolls(true);
    result.setText("new");
    result.setEditable(false);
     
    //result.getAlignmentY();
    result.setBounds(20,200,440,200);
    container.add(result);
    container.add(button1);
    container.add(button2);
    container.add(button3);
    container.add(button4);
     
     label1 = new JLabel( "" );
     label1.setToolTipText( "" );
     container.add( label1 );
     
     label2 = new JLabel( "");
     label2.setToolTipText( "" );
     container.add( label2 );
     
     label3 = new JLabel();
     label3.setText( "" );
     label3.setToolTipText( "" );
     container.add( label3 );
     
     setSize( 500, 500 );
     setVisible( true );
     }
     // execute application
     public static void main( String args[] )throws IOException
     {
     thrift application = new thrift();
     application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
     File file = new File("in.xls");
     BufferedReader in = new BufferedReader(new FileReader(file));
     
     File outfile = new File("out.xls");
     BufferedWriter out = new BufferedWriter(new FileWriter(outfile));
     
     }
    public void actionPerformed(ActionEvent e)
    {
        if (e.getSource() == button1)//administrator
        {
            result.setText("Administrator\n this is meAnt \nto show administrative \noptions");
        }
        if (e.getSource() == button2)//check status
        {
            result.setText("Check Status");
        }
        if (e.getSource() == button3)//transactions
        {
            result.setText("transactions");
        }
        if (e.getSource() == button4)//loans
        {
            result.setText("loans");
        }
    }
     }

  6. #6
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: savings and loan society

    mmm... xls files are binary files that make it difficult to interpret what's inside of them without some work

    If it must be a xls file, I'd recommend finding a good API to perform the witchcraft reading for you (I here JExcel API is a good one).

    If it is indeed just a regular text file, use the Scanner class.

  7. #7
    Member
    Join Date
    Jul 2009
    Posts
    31
    Thanks
    3
    Thanked 6 Times in 5 Posts

    Default Re: savings and loan society

    did you yourself put the data into the xls, or were you specifically told to put it in an xls file

  8. #8
    Junior Member
    Join Date
    Mar 2009
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: savings and loan society

    It is expected that I read my inputs from a database, but I dont know how to go about that, that is why I opted for an excel file

  9. #9
    Member
    Join Date
    Jul 2009
    Posts
    31
    Thanks
    3
    Thanked 6 Times in 5 Posts

    Default Re: savings and loan society

    depending on the scope of the course you should likely not be expected to read from something such as an xls file.

    try saving xls as a .CSV file.

    Makes sheet turn into something like.

    Last edited by rsala004; November 10th, 2009 at 05:04 PM.

  10. #10
    Member
    Join Date
    Jul 2009
    Posts
    31
    Thanks
    3
    Thanked 6 Times in 5 Posts

    Default Re: savings and loan society

    random link, stay away... -.-

Similar Threads

  1. Credit and thrift society application(urgent)
    By 5723 in forum Java Theory & Questions
    Replies: 1
    Last Post: November 3rd, 2009, 02:44 AM