The spacing actually doesn't look all that bad. Next time, make sure you put code tags around your code. It really makes everything look nice.
If you are coding for yourself, then you shouldn't have to worry about any of these issues. Following coding standards like those set forth by sun are there to make your code readable for others.
Here are a few suggestions that should keep your code looking clean enough:
-indent each line one time for each unclosed bracket ({) at that given place
-indent under loops and if/else statements, if the code is to be run only under the given conditions
-try not to have a line of code with more than one semicolon in it (semicolons should indicate the end of a line)
There are coding standards out there. Here's what sun has to say on the issue:
http://java.sun.com/docs/codeconv/In addition, there are also programs that you can run your code through that will automatically format your code nice and neatly. Check out this if your interested:
http://www.tiobe.com/jacobe.htm