I prefer the second because it is more readable, the result of the button press appears close in the code to the button. The only drawback is that there is a small bit of overhead because more classes have to be loaded. This is really pretty negligible amount, though.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
posted 14 years ago
Nate, I have been enjoing your comments in Javaranch. Thank you Garandi