Also, please use the 'code' tags when posting java code. you can click the little buttons above where you enter your post to have them drop in, then paste your source between. This will preserver your formatting, making the code much easier to read.
I was going to edit your post to put them in, but found you don't have your code properly formatted. so, my next suggestion would be to ask you to please properly format your code, to make it easier to read.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors