well this is definitely a job for the java forums not linux... i haven't done java in a little while so i can't remember the exact methods you need to use

your problem resides in the fact that...