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
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment