Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
I tried to make a simple program, draw a 4 sided polygon with 4 mouse clicks. This is the code: [CODE]import acm.graphics.*; import acm.program.*; import java.awt.event.*; public class Pravougaonik extends GraphicsProgram { public void run() { addMouseListeners(); } public void mouseClicked(MouseEvent e) { GPolygon cetvorougao = new GPolygon(); cetvorougao.addVertex(e.getX(),e.getY()); cetvorougao.addVertex(e.getX(),e.getY()); … |