Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

NEED HELP!!!How to make LINES Colorful--PLEASE HELP!!!!!!

843807Aug 2 2001 — edited Aug 3 2001
i want to draw a red line:

Graphics g;
g = b.getGraphics();
g.drawLine(20,5,100,64);

but the line is black, i want it red.
the command g.setColor(color.RED) is not working....
WHATS WRONG, please help, thanks thomas
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 31 2001
Added on Aug 2 2001
15 comments
237 views