Java Programming/Graphics/Understanding gradients