A comment on your programming:
catch (IOException e) {}

You should always call printStackTrace() in the catch blocks to show any errors. Your code ignores any errors.