Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Apr 11, 2005
Jun 05, 2005 19:30:00
I can't find a method in Graphics2D to plot a point.
I can draw a line, eg g.drawLine(10,10,40,40);
but how do I plot a point at (x,y), without having to use:
Joined: Jan 14, 2004
Jun 06, 2005 12:20:00
g2.fill(new Ellipse2D.Double(x-2, y-2, 4, 4));
You can also use 'fillOval' or Rectangle2D.
It is sorta covered in the
JavaRanch Style Guide
subject: Plotting Points
Someone Please, Help.. having Syntax problems with p.getx().. PLEASE
East JPanel and graphics
plotting points again
How to draw triangle in paintcomponent
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013