Welcome to Dream.In.Code
Getting Java Help is Easy!

Join 132,634 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,056 people online right now. Registration is fast and FREE... Join Now!




code for my proposal

 
Reply to this topicStart new topic

code for my proposal, atm,task manager code

chengggg
post 11 Oct, 2008 - 09:21 PM
Post #1


New D.I.C Head

*
Joined: 1 Oct, 2008
Posts: 14

i just can't make it can you give me the code for atm..... that you can deposit and withdraw...
or the code for task manager.......i hope you help me thnx....
User is offlineProfile CardPM

Go to the top of the page

bbq
post 11 Oct, 2008 - 09:55 PM
Post #2


D.I.C Head

Group Icon
Joined: 15 May, 2008
Posts: 185



Thanked 15 times

Dream Kudos: 50
My Contributions


QUOTE(chengggg @ 11 Oct, 2008 - 10:21 PM) *

i just can't make it can you give me the code for atm..... that you can deposit and withdraw...
or the code for task manager.......i hope you help me thnx....



Um there is a search option and plenty of examples of what you are talking about. Try that and if you still can't find the code post back
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 11 Oct, 2008 - 10:31 PM
Post #3


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 8,933



Thanked 118 times

Dream Kudos: 8525

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is offlineProfile CardPM

Go to the top of the page

chengggg
post 11 Oct, 2008 - 11:09 PM
Post #4


New D.I.C Head

*
Joined: 1 Oct, 2008
Posts: 14

im having a problem with this atm program........
an error is occured with this code
CODE
"f.setPreferredSize(new Dimension(300, 200));"[code]




     [code]:
  import java.awt.*;
import javax.swing.*;
public class ATM
{
    private JFrame f;
    private JTextField vn;
    private JTextArea v;
    private JPanel p;
    private JPanel pp;
    private JPanel ppp;
    private JPanel pppp;
    private JButton one, two, three;
    private JButton q, w, e, r, t, y, u, i, o, n, a, s;
    

    public ATM()
    {
        f = new JFrame("ATM Program");
        p = new JPanel();
        pp = new JPanel();
        ppp = new JPanel();
        pppp = new JPanel();
        vn = new JTextField();
        v = new JTextArea();
        one = new JButton("Display Account Balance");
        two = new JButton("Make a Deposit");
        three = new JButton("Make a Withdraw");
        q = new JButton("1");
        w = new JButton("2");
        e = new JButton("3");
        r = new JButton("4");
        t = new JButton("5");
        y = new JButton("6");
        u = new JButton("7");
        i = new JButton("8");
        o = new JButton("9");
        n = new JButton("0");
        s = new JButton(".");
        a = new JButton("Enter");
    }
    
    public void ATM()
    {
        f.setPreferredSize(new Dimension(300, 200));
        pp.setLayout(new GridLayout(4,1));
        pp.add(one);
        pp.add(two);
        pp.add(three);
        pp.add(vn);
        p.add(pp, BorderLayout.NORTH);
        pppp.setLayout(new GridLayout(1, 0));
        pppp.add(v = new JTextArea(20, 20));
        p.add(pppp, BorderLayout.CENTER);
        ppp.setLayout(new GridLayout(4,3));
        ppp.add(q);
        ppp.add(w);
        ppp.add(e);
        ppp.add(r);
        ppp.add(t);
        ppp.add(y);
        ppp.add(u);
        ppp.add(i);
        ppp.add(o);
        ppp.add(n);
        ppp.add(a);
        ppp.add(s);
        p.add(ppp, BorderLayout.SOUTH);
        f.add(p);    
        f.pack();
        f.setVisible(true);
    }

    public static void main(String args[])
    {
        ATM guiWindow = new ATM();
        guiWindow.ATM();
    }
}






i hope you can fix the problem


i dont know what code im going to put with the deposit and withdrawal button....
i hope you help me .....i need to pass this on the 15th of october 2008....
plzzz help me!!!! im begging you guyz....

This post has been edited by chengggg: 11 Oct, 2008 - 11:12 PM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 04:06AM

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month