BananaTown Posted October 19, 2020 Posted October 19, 2020 So i can draw a rectangle, but it's just the outline. Id like to create a solid black rectangle so the paint is easier to read. ss of what it looks like now Code for rectangle I have currently g.setColor(new Color(0,0,0,255)); g.drawRect(15, 200, 300, 100);
FuryShark Posted October 19, 2020 Posted October 19, 2020 4 minutes ago, Fich420 said: So i can draw a rectangle, but it's just the outline. Id like to create a solid black rectangle so the paint is easier to read. ss of what it looks like now Code for rectangle I have currently g.setColor(new Color(0,0,0,255)); g.drawRect(15, 200, 300, 100); Rectangle t = new Rectangle(15, 200 ,300 ,100); g.fill(t); 1
BananaTown Posted October 19, 2020 Author Posted October 19, 2020 google is my friend. Figured it out, apologies for creating. if anyone else is wondering, g.fillRect(15,200, 300, 100); Did what i was trying to do 1 minute ago, FuryShark said: Rectangle t = new Rectangle(15, 200 ,300 ,100); g.fill(t); thank you
Khaleesi Posted October 19, 2020 Posted October 19, 2020 1 hour ago, Fich420 said: google is my friend. Figured it out, apologies for creating. if anyone else is wondering, g.fillRect(15,200, 300, 100); Did what i was trying to do thank you Exactly! Just use Fill instead of draw