Help with setting colors on lines2D

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luchyloo
    New Member
    • Feb 2007
    • 7

    #1

    Help with setting colors on lines2D

    i just designed a south africa flag with rectangles and lines please who anyone help with how would i set colors for three lines that form a triangle pls help me with the codes.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by luchyloo
    i just designed a south africa flag with rectangles and lines please who anyone help with how would i set colors for three lines that form a triangle pls help me with the codes.
    You set the color during the drawing or filling. Set the color using the method g.setColor method of the Graphics class
    Code:
     g.setColor(java.awt.Color color); 
    then 
    g.draw/fillWhatever()

    Comment

    • luchyloo
      New Member
      • Feb 2007
      • 7

      #3
      Originally posted by r035198x
      You set the color during the drawing or filling. Set the color using the method g.setColor method of the Graphics class
      Code:
       g.setColor(java.awt.Color color); 
      then 
      g.draw/fillWhatever()

      thanx for ur mail but i could onlt fill the rectangles but not the lines of angles i have drawn i could only change the colors of the lines

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by luchyloo
        thanx for ur mail but i could onlt fill the rectangles but not the lines of angles i have drawn i could only change the colors of the lines
        Post your code then
        Last edited by r035198x; Mar 8 '07, 08:18 AM. Reason: wrong thread!

        Comment

        Working...