I've a JPanel and draw shapes on it out of paintComponent method, with panel.getGraphics()
the problem is my drawing disappear. i must click on them ro appear, and sometimes it doesn't work. also, when i minimize and then maximize the frame, the shapes disappear again.
i tried using repaint() method, it didn't work too.
I also have problem moving a drawn shape. i used this http://goo.gl/KIFDd sample and changed it a little; it doesn't work for polygons at all!
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment