자바 질문이요 ㅠ

조회수 467회

클래스별로 나눴습니다!

import java.awt.; import java.awt.event.; import java.util.*;

import javax.swing.ImageIcon;

public class MenuStart extends Frame{

String previousAction;
CardLayout card;
Panel cardPanel;
String money;

public void setMoney(String money) {
    this.money = money;
}

public String getMoney() {
    return money;
}

public void setPreviousAction(String action) {
    this.previousAction = action;
}

public String getPreviousAction() {
    return previousAction;
}

public void setMiddle() {
    Dimension frameSize = getSize();
    Dimension windowSize = Toolkit.getDefaultToolkit().getScreenSize();
    setLocation((windowSize.width / 2 - (frameSize.width/2)),
            (windowSize.height / 2 - (frameSize.height/2)));
}

MenuStart(String title){
    super(title);

    //setIconImage(new ImageIcon("images/icon.png").getImage());
    card = new CardLayout();
    cardPanel = new Panel(card);
    setPreviousAction("");

    MainPanel MainPanel = new MainPanel(card, cardPanel, this);
    AdminLogin AdminLogin = new AdminLogin(card, cardPanel, this);
    WarningPanel WarningPanel = new WarningPanel(card, cardPanel, this);
    SetNumber1 SetNumber1 = new SetNumber1(card, cardPanel, this);
    SetNumber2 SetNumber2 = new SetNumber2(card, cardPanel, this);
    SetNumber3 SetNumber3 = new SetNumber3(card, cardPanel, this);
    SetMoney SetMoney = new SetMoney(card, cardPanel, this);
    FinalConfirm FinalConfirm = new FinalConfirm(card, cardPanel, this);

    setLayout(card);
    setSize(800, 610);
    setMiddle();
    add(cardPanel);

    cardPanel.add(MainPanel, "main");
    cardPanel.add(WarningPanel, "warning");
    cardPanel.add(AdminLogin, "login");
    cardPanel.add(SetNumber1, "numberpad1");
    cardPanel.add(SetNumber2, "numberpad2");
    cardPanel.add(SetNumber3, "numberpad3");
    cardPanel.add(SetMoney, "setmoney");
    cardPanel.add(FinalConfirm, "check");

    card.show(cardPanel, "main");

    addWindowListener(new WindowAdapter(){
        public void windowClosing(WindowEvent e) {
            System.exit(0);
        }
    });

    setVisible(true);

}

public static void main(String[] args) {
    new MenuStart("ATM기기");

}

}

public class MainPanel extends Panel{

Panel p1;
Button s1, s2, s3, s4, u1;
Font f1, f2;

MainPanel(CardLayout card, Panel cardPanel, MenuStart menuStart) {

    setLayout(null);

    p1 = new Panel();
    p1.setLayout(new GridLayout(2, 2, 5, 5));
    p1.setBounds(5, 5, 777, 505);
    p1.setBackground(Color.white);

    f1 = new Font("한컴 고딕", Font.BOLD, 40);
    f2 = new Font("한컴 고딕", Font.BOLD, 55);

    s1 = new Button("돈 찾기");
    s1.setFont(f2);
    s1.setBackground(new Color(62, 194, 62));
    s1.setForeground(Color.white);
    s1.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            menuStart.setPreviousAction("findMoney");
            card.show(cardPanel, "warning");
            menuStart.setSize(800, 550);
            menuStart.setMiddle();
        }
    });

    s2 = new Button("돈 넣기");
    s2.setFont(f2);
    s2.setBackground(new Color(62, 194, 62));
    s2.setForeground(Color.white);
    s2.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            menuStart.setPreviousAction("inputMoney");
            card.show(cardPanel, "warning");
            menuStart.setSize(800, 550);
            menuStart.setMiddle();
        }
    });

    s3 = new Button("돈 보내기");
    s3.setFont(f2);
    s3.setBackground(new Color(62, 194, 62));
    s3.setForeground(Color.white);
    s3.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            menuStart.setPreviousAction("sendMoney");
            card.show(cardPanel, "warning");
            menuStart.setSize(800, 550);
            menuStart.setMiddle();
        }
    });

    s4 = new Button("내역 확인");
    s4.setFont(f2);
    s4.setBackground(new Color(62, 194, 62));
    s4.setForeground(Color.white);
    s4.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            //card.show(cardPanel, "waiting");
            //menuStart.setSize(800, 550);
            menuStart.setMiddle();
        }
    });

    u1 = new Button("관리자 기능");
    u1.setFont(f1);
    u1.setBackground(new Color(255, 100, 0));
    u1.setForeground(Color.white);
    u1.setBounds(0, 515, 788, 60);
    u1.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            card.show(cardPanel, "login");
            menuStart.setSize(350, 250);
            menuStart.setMiddle();
        }
    });

    add(p1); p1.add(s1); p1.add(s2); p1.add(s3); p1.add(s4); add(u1);
}

}

public class WarningPanel extends Panel{

Button y1, n1;
Label l1, l2, l3, l4, l5, l6;
Font f2;

WarningPanel(CardLayout card, Panel cardPanel, MenuStart menuStart) {

    setLayout(null);

    f2 = new Font("한컴 고딕", Font.BOLD, 30);

    l1 = new Label("최근 자동화기기에 카드 복제기를 부착하여 고객");
    l1.setFont(f2);
    l1.setBounds(30, 20, 750, 35);

    l2 = new Label("정보 탈취를 시도한 사례가 있사오니,");
    l2.setFont(f2);
    l2.setBounds(30, 55, 495, 35);

    l3 = new Label("카드투입구가");
    l3.setFont(f2);
    l3.setForeground(new Color(255,100,0));
    l3.setBounds(525, 53, 205, 35);

    l4 = new Label("평소와 다른 모양인 경우에는 사용을 중단하시고");
    l4.setFont(f2);
    l4.setForeground(new Color(255,100,0));
    l4.setBounds(30, 90, 750, 35);

    l5 = new Label("영업점이나 인터폰으로 신고");
    l5.setFont(f2);
    l5.setForeground(new Color(255,100,0));
    l5.setBounds(30, 125, 380, 35);

    l6 = new Label("하여 주시기 바랍니다");
    l6.setFont(f2);
    l6.setBounds(405, 125, 340, 35);

    y1 = new Button("O 계속 거래합니다");
    y1.setFont(f2);
    y1.setBackground(new Color(62,194,62));
    y1.setForeground(Color.white);
    y1.setBounds(0, 445, 395, 70);
    y1.addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent e) {
            switch (menuStart.previousAction) {
            case "findMoney":
                System.out.println("돈 찾기 수행");
                card.show(cardPanel, "numberpad1");
                break;
            case "inputMoney":
                System.out.println("돈 넣기 수행");
                card.show(cardPanel, "numberpad2");
                break;
            case "sendMoney":
                System.out.println("돈 보내기 수행");
                card.show(cardPanel, "numberpad3");
                break;
            }
        }
    });

    n1 = new Button("X 거래를 취소합니다");
    n1.setFont(f2);
    n1.setBackground(new Color(255,100,0));
    n1.setForeground(Color.white);
    n1.setBounds(400, 445, 388, 70);
    n1.addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent e) {
            card.show(cardPanel, "main");
            menuStart.setSize(800, 610);
            menuStart.setMiddle();
        }
    });

    add(l1); add(l2); add(l3); add(l4); add(l5); add(l6); add(y1); add(n1);
}

}

public class SetNumber1 extends Panel{

Panel p1, p2;
Button b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14;
Label l1,l2,l3;
Font f1,f2;
TextField tf1;

SetNumber1(CardLayout card, Panel cardPanel, MenuStart menuStart){
    setLayout(null);

    f1 = new Font("한컴 고딕", Font.BOLD, 40);
    f2 = new Font("한컴 고딕",Font.BOLD, 60);

    tf1 = new TextField(12);
    tf1.setEditable(false);
    tf1.setBounds(35, 383, 340, 50);
    tf1.setFont(f1);

    /*switch (menuStart.previousAction) {
    case "findMoney":
        l1.setText("돈을 찾을");
        break;
    case "inputMoney":
        l1.setText("돈을 넣을");
        break;
    case "sendMoney":
        l1.setText("돈을 보낼");
        break;
    default:
        l1.setText("NULL");
        break;
    }*/
    l1 = new Label("돈을 찾을");
    l1.setFont(f2);
    l1.setBounds(35, 65, 250, 60);

    l2 = new Label("계좌번호를");
    l2.setFont(f2);
    l2.setBounds(35, 125, 300, 60);

    l3 = new Label("누르세요");
    l3.setFont(f2);
    l3.setBounds(35, 185, 300, 60);

    p1 = new Panel();
    p1.setLayout(new GridLayout(4, 3, 3, 3));
    p1.setBounds(400, 0, 389, 433);

    p2 = new Panel();
    p2.setLayout(new GridLayout(1, 2, 3, 0));
    p2.setBounds(400, 436, 389, 80);

    b1 = new Button("1");
    b1.setFont(f1);
    b1.setBackground(new Color(62, 194, 62));
    b1.setForeground(Color.white);
    b1.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "1");
        }
    });

    b2 = new Button("2");
    b2.setFont(f1);
    b2.setBackground(new Color(62, 194, 62));
    b2.setForeground(Color.white);
    b2.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "2");
        }
    });

    b3 = new Button("3");
    b3.setFont(f1);
    b3.setBackground(new Color(62, 194, 62));
    b3.setForeground(Color.white);
    b3.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "3");
        }
    });

    b4 = new Button("4");
    b4.setFont(f1);
    b4.setBackground(new Color(62, 194, 62));
    b4.setForeground(Color.white);
    b4.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "4");
        }
    });

    b5 = new Button("5");
    b5.setFont(f1);
    b5.setBackground(new Color(62, 194, 62));
    b5.setForeground(Color.white);
    b5.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "5");
        }
    });

    b6 = new Button("6");
    b6.setFont(f1);
    b6.setBackground(new Color(62, 194, 62));
    b6.setForeground(Color.white);
    b6.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "6");
        }
    });

    b7 = new Button("7");
    b7.setFont(f1);
    b7.setBackground(new Color(62, 194, 62));
    b7.setForeground(Color.white);
    b7.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "7");
        }
    });

    b8 = new Button("8");
    b8.setFont(f1);
    b8.setBackground(new Color(62, 194, 62));
    b8.setForeground(Color.white);
    b8.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "8");
        }
    });

    b9 = new Button("9");
    b9.setFont(f1);
    b9.setBackground(new Color(62, 194, 62));
    b9.setForeground(Color.white);
    b9.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "9");
        }
    });

    b10 = new Button("지움");
    b10.setFont(f1);
    b10.setBackground(new Color(0,128,255));
    b10.setForeground(Color.white);
    b10.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            try{
                tf1.setText(tf1.getText().substring(0, tf1.getText().length() - 1));
            } catch (java.lang.StringIndexOutOfBoundsException e1){
                System.out.println("예외 발생!");
            }
        }
    });

    b11 = new Button("0");
    b11.setFont(f1);
    b11.setBackground(new Color(62, 194, 62));
    b11.setForeground(Color.white);
    b11.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "0");
        }
    });

    b12 = new Button("정정");
    b12.setFont(f1);
    b12.setBackground(new Color(0,128,255));
    b12.setForeground(Color.white);
    b12.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText("");
        }
    });

    b13 = new Button("확인");
    b13.setFont(f1);
    b13.setBackground(new Color(62, 194, 62));
    b13.setForeground(Color.white);
    b13.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            card.show(cardPanel, "setmoney");
        }
    });

    b14 = new Button("취소");
    b14.setFont(f1);
    b14.setBackground(new Color(255,100,0));
    b14.setForeground(Color.white);
    b14.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            card.show(cardPanel, "main");
            menuStart.setSize(800, 610);
            menuStart.setMiddle();
            tf1.setText("");
        }
    });

    add(l1); add(l2); add(l3); add(tf1);
    add(p1); p1.add(b1); p1.add(b2); p1.add(b3); p1.add(b4); p1.add(b5); p1.add(b6); p1.add(b7);
    p1.add(b8); p1.add(b9); p1.add(b10); p1.add(b11); p1.add(b12);
    add(p2); p2.add(b13); p2.add(b14);

}

}

public class SetMoney extends Panel{

Panel p1, p2;
Button b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14,b15,b16,b17;
Label l1,l2,l3,l4,l5;
Font f1,f2,f3;
TextField tf1;
int totalmoney;

SetMoney(CardLayout card, Panel cardPanel, MenuStart menuStart){

    setLayout(null);

    f1 = new Font("한컴 고딕", Font.BOLD, 30);
    f2 = new Font("한컴 고딕", Font.BOLD, 55);
    f3 = new Font("한컴 고딕", Font.BOLD, 45);

    tf1 = new TextField();
    tf1.setEditable(false);
    tf1.setBounds(35, 416, 340, 50);
    tf1.setFont(f3);

    l1 = new Label("얼마를");
    l1.setFont(f2);
    l1.setBounds(35, 50, 250, 60);

    l2 = new Label("보낼까요?");
    l2.setFont(f2);
    l2.setBounds(35, 115, 300, 60);

    l3 = new Label("한번에 최대");
    l3.setFont(f3);
    l3.setBounds(35, 215, 300, 50);

    l4 = new Label("600만원까지");
    l4.setFont(f3);
    l4.setBounds(35, 265, 320, 50);

    l5 = new Label("보낼수있습니다");
    l5.setFont(f3);
    l5.setBounds(35, 315, 320, 50);

    p1 = new Panel();
    p1.setLayout(new GridLayout(5, 3, 3, 3));
    p1.setBounds(480, 0, 310, 433);

    p2 = new Panel();
    p2.setLayout(new GridLayout(1, 2, 3, 0));
    p2.setBounds(480, 436, 310, 80);

    b1 = new Button("1");
    b1.setFont(f1);
    b1.setBackground(new Color(62, 194, 62));
    b1.setForeground(Color.white);
    b1.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "1");
        }
    });

    b2 = new Button("2");
    b2.setFont(f1);
    b2.setBackground(new Color(62, 194, 62));
    b2.setForeground(Color.white);
    b2.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "2");
        }
    });

    b3 = new Button("3");
    b3.setFont(f1);
    b3.setBackground(new Color(62, 194, 62));
    b3.setForeground(Color.white);
    b3.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "3");
        }
    });

    b4 = new Button("4");
    b4.setFont(f1);
    b4.setBackground(new Color(62, 194, 62));
    b4.setForeground(Color.white);
    b4.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "4");
        }
    });

    b5 = new Button("5");
    b5.setFont(f1);
    b5.setBackground(new Color(62, 194, 62));
    b5.setForeground(Color.white);
    b5.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "5");
        }
    });

    b6 = new Button("6");
    b6.setFont(f1);
    b6.setBackground(new Color(62, 194, 62));
    b6.setForeground(Color.white);
    b6.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "6");
        }
    });

    b7 = new Button("7");
    b7.setFont(f1);
    b7.setBackground(new Color(62, 194, 62));
    b7.setForeground(Color.white);
    b7.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "7");
        }
    });

    b8 = new Button("8");
    b8.setFont(f1);
    b8.setBackground(new Color(62, 194, 62));
    b8.setForeground(Color.white);
    b8.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "8");
        }
    });

    b9 = new Button("9");
    b9.setFont(f1);
    b9.setBackground(new Color(62, 194, 62));
    b9.setForeground(Color.white);
    b9.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "9");
        }
    });

    b10 = new Button("지움");
    b10.setFont(f1);
    b10.setBackground(new Color(0,128,255));
    b10.setForeground(Color.white);
    b10.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            try{
                tf1.setText(tf1.getText().substring(0, tf1.getText().length() - 1));
            } catch (java.lang.StringIndexOutOfBoundsException e1){
                System.out.println("예외 발생!");
            }
        }
    });

    b11 = new Button("0");
    b11.setFont(f1);
    b11.setBackground(new Color(62, 194, 62));
    b11.setForeground(Color.white);
    b11.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText(tf1.getText() + "0");
        }
    });

    b12 = new Button("정정");
    b12.setFont(f1);
    b12.setBackground(new Color(0,128,255));
    b12.setForeground(Color.white);
    b12.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            tf1.setText("");
        }
    });

    b13 = new Button("만");
    b13.setFont(f1);
    b13.setBackground(new Color(0,128,255));
    b13.setForeground(Color.white);
    b13.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            if (!tf1.getText().isEmpty()) {
                totalmoney = Integer.parseInt(tf1.getText())*10000;
                System.out.println(totalmoney);
                tf1.setText(tf1.getText() + "만");
            }
        }
    });

    b14 = new Button("천");
    b14.setFont(f1);
    b14.setBackground(new Color(0,128,255));
    b14.setForeground(Color.white);
    b14.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            if (!tf1.getText().isEmpty()) {
                totalmoney = Integer.parseInt(tf1.getText())*10000;
                tf1.setText(tf1.getText() + "천");
            }
        }
    });

    b15 = new Button("원");
    b15.setFont(f1);
    b15.setBackground(new Color(0,128,255));
    b15.setForeground(Color.white);
    b15.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            if (!tf1.getText().isEmpty()) {
                tf1.setText(tf1.getText() + "원");
            }
        }
    });

    b16 = new Button("확인");
    b16.setFont(f1);
    b16.setBackground(new Color(62, 194, 62));
    b16.setForeground(Color.white);
    b16.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            if (!tf1.getText().isEmpty()) {
                menuStart.setMoney( Integer.toString(totalmoney));
                card.show(cardPanel, "check");
                tf1.setText("");
            }
        }
    });

    b17 = new Button("취소");
    b17.setFont(f1);
    b17.setBackground(new Color(255,100,0));
    b17.setForeground(Color.white);
    b17.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            card.show(cardPanel, "main");
            menuStart.setSize(800, 610);
            menuStart.setMiddle();
            tf1.setText("");
        }
    });

    add(l1); add(l2); add(l3); add(tf1); add(l4); add(l5);
    add(p1); p1.add(b1); p1.add(b2); p1.add(b3); p1.add(b4); p1.add(b5); p1.add(b6); p1.add(b7);
    p1.add(b8); p1.add(b9); p1.add(b10); p1.add(b11); p1.add(b12); p1.add(b13); p1.add(b14); p1.add(b15);
    add(p2); p2.add(b16); p2.add(b17);
}

}

public class FinalConfirm extends Panel{

Label l1,l2,l3,l4,l5,l6,l7;
Panel p1, p2;
Button b1,b2;
Font f1,f2,f3;

FinalConfirm(CardLayout card, Panel cardPanel, MenuStart menuStart){
    setLayout(null);

    f1 = new Font("한컴 고딕", Font.BOLD, 28);
    f2 = new Font("한컴 고딕", Font.BOLD, 35);
    f3 = new Font("한컴 고딕", Font.BOLD, 60);

    p1 = new Panel();
    p1.setLayout(new GridLayout(4, 1, 0, 1));
    p1.setBounds(200, 215, 600, 200);
    p1.setBackground(Color.black);

    p2 = new Panel();
    p2.setLayout(new GridLayout(1, 2, 3, 0));
    p2.setBounds(0, 440, 790, 80);

    l1 = new Label("보이스피싱주의!의심되면거래를멈추고[아니오]를누르세요!");
    l1.setFont(f1);
    l1.setBounds(25, 15, 800, 30);
    l1.setForeground(Color.red);

    l2 = new Label(menuStart.getMoney() + "원을");
    l2.setFont(f3);
    l2.setBounds(310, 70, 700, 65);

    l3 = new Label("보내는 것이 맞나요?");
    l3.setFont(f3);
    l3.setBounds(140, 145, 600, 60);

    l4 = new Label("돈을 받는 은행 : 자바은행" );
    l4.setFont(f1);
    l4.setBackground(Color.white);

    l5 = new Label("돈을 받는 계좌번호 : ");
    l5.setFont(f1);
    l5.setBackground(Color.white);

    l6 = new Label("돈을 받는 사람 : ");
    l6.setFont(f1);
    l6.setBackground(Color.white);

    l7 = new Label("수수료 : 500원");
    l7.setFont(f1);
    l7.setBackground(Color.white);

    b1 = new Button("O 네,맞습니다");
    b1.setFont(f2);
    b1.setBackground(new Color(62, 194, 62));
    b1.setForeground(Color.white);

    b2 = new Button("X 아니오");
    b2.setFont(f2);
    b2.setBackground(new Color(255,100,0));
    b2.setForeground(Color.white);
    b2.addActionListener(new ActionListener(){
        public void actionPerformed(ActionEvent e) {
            card.show(cardPanel, "main");
            menuStart.setSize(800, 610);
            menuStart.setMiddle();
        }
    });

    add(l1); add(l2); add(l3); add(p1); add(p2);
    p1.add(l4); p1.add(l5); p1.add(l6); p1.add(l7);
    p2.add(b1); p2.add(b2);
}

}

SetNumber1 패널에서 계좌번호를 받고 SetMoney에서 입금할, 출금할 금액도 받아서 그 번호랑 일치하는 사람(아직 구현 안됨 이것도 몰라서 못하는중)의 계좌 금액을 수정하고 마지막 확인 패널에서 이름, 계좌번호등 정보를 띄워주고 싶은데 도저히 감도 안잡히네요 SetMoney 에서 받은 금액수는 메인으로 넘겨서 저장해두고 마지막 확인 패널에서 출력하려고 코드 만들어놨는데 NULL값만 계속 나와서 뭐가 문제인지...과제로 개별 프로젝트 만들고있는데 초보라 너무 어렵네요 해결책있으면 알려주세요ㅠㅠ 코드 난해한점 양해바랍니다!

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)