http://java.sun.com has some information on coding standards, it alsohas some good pointers on how to draw stuff in both awt and swing.