No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi there, I am not sure where to post this question. I want to know how to animate objects like my "project images" when i click on menu item on web page. For better understanding please visit the following link and click on my work from top navigation. Thank you. … |
|
Hi everyone, How to select already drawn **single or multiple shapes** . I want to select shapes when i draw rectangle around it and when i click on blank area it deletects it. I need selection for copy, pase, move and delete operation. I don't know where to start to … |
|
Hi there, I want to implement undo logic which deletes the last drawn shape. To test this logic i had cleared shapes list and redrawn all shapes but still **last** shape does not delete. public void drawAllShapes(Graphics2D g) { //draw all triangles for (DrawTriangle t : newTriangles) { t.drawTriangle(g); } … |
|
Hello eveyone, Please tell me why triangle shape is redrawing on mouse move. It want triangle shape draw only once until mouse release. Here is my code below. Thank you ! public class Triangle extends JFrame { Point startDrag, endDrag, midPoint; private java.util.List<Polygon> triangles = new LinkedList<Polygon>(); Polygon triangle; public … |
|
Hi there, I want to draw a triangle using mouse events like mousePressed(), mouseReleased() and mouseDragged(). But triangle did not show until mouse release. Please tell me what i am doing wrong that triangle is not showing in mouseDrag event. And one thing more, triangle is drawing upside down. Please … |