A Java Graphics study for gaming techniques