Thanks for the help guys, Guus i still can not get it to work like that, but the obj.toString() seems to work great. Is there a reason for this? Do i need to update my java?