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!
Comments
Leave a comment