Advertisement

setting pixel color in Java

Started by April 30, 2000 09:37 PM
0 comments, last by gamenet 24 years, 8 months ago
how do I set a pixel to a certain color on the screen?
Justin Nahin
try using g.setColor() in your paint method. eg.

g.setColor(Color.green); //replace green with whatever

hope that helps.

- Daniel
my homepage
- DanielMy homepage

This topic is closed to new replies.

Advertisement