QUOTE(Locke37 @ 2 Aug, 2008 - 10:57 AM)

Well, then in my first snippet,
printTransactions(), I'll edit it a bit here.
java
public String printTransactions()
{
String ret = "";
for (int x = 0; x < transactions.size(); x++)
{
ret += transactions.get(x).getType() + "\n";
ret += transactions.get(x).getAmount() + "\n\n";
}
return ret;
}
Then set the TextArea text to that method and it should work.

I think I edited my earlier post after you posted, I made 2 more methods, check those if the ones in this one aren't familiar.

Ok i got it.Thanks a lot again!
But the headache keeps going.Its the final thing in my Assignment.Actually i need these function because i want to keep in this array all the transaction of the Atm i design and then with a button print the 10 last.Your help unstuck me now i have to apply all the changes in my code.
As far as the semicolons in the arrays without the semicolons gives me an error.I have put them in the implementation file
CODE
package mypackage;
import java.util.ArrayList;
import javax.swing.JOptionPane;
import mypackage.BankAccount;
/**
*
* @author j0e
*/
public class Atm extends javax.swing.JDialog {
//Create the initial array of the accounts
public Bank bank = new Bank();{
bank.addAccount(new BankAccount(100, 1000, "Karapanos" ,"Andreas Fotiou","Checking"));
bank.addAccount(new BankAccount(200, 2000, "City" , "Maria Glastra", "Saving"));
bank.addAccount(new BankAccount(300, 3000, "Karapanos", "Malvina Karali", "Checking"));
}
i guess i might have them in wrong place but its work well i could post all the code of the project but is more than 2l lines.
Thanks Again.i might need you again on this.