• Post Reply Bookmark Topic Watch Topic
  • New Topic

simple gui task  RSS feed

 
aidas kar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

i'm stuck here, on a simple gui task. it ment to draw pie chart with different colors. i can't seem to find a mistake in it, please help. it works if i put in g2g.draw(arc) i know arcs overlaps abit due int conversion, but that's ok.




 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have more success getting an answer if you tell us your problem. What is happening? What should be happening? What is the difference between the current state and what you want? You say it works if you put in a g2g.draw() call (where?). So is that the solution? If not, why?
 
aidas kar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry about that. its basically panel with text field. once you type in digits in it, for example 25 25 25 25 and press enter. it meant to draw an circle split in 4 even pieces in different colors. but what it does it draws one circle all in same color. Oh and draw() call instead of fill() in drawPies method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!