Esempio n. 1
0
 public void getAccount() throws RemoteException {
   String username = view.getUserName();
   Double amt = bs.getAccount(username);
   current = username;
   ba.set(amt);
   view.setBalance("");
   view.setAmount("");
 }
Esempio n. 2
0
 public void newAccount() throws RemoteException {
   String username = view.getUserName();
   bs.newAccount(username);
   current = username;
   ba.set(0.0);
   view.setBalance("");
   view.setAmount("");
 }
Esempio n. 3
0
 public void showBalance() throws RemoteException {
   String balance = ba.getAmt().toString();
   view.setBalance(balance);
 }
Esempio n. 4
0
 public void withdraw() throws RemoteException {
   String amount = view.getAmount();
   Double amt = Double.parseDouble(amount);
   ba.withdraw(amt);
   bs.update(current, ba.getAmt());
 }