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.
subject: Plotting Points
East JPanel and graphics
How to draw triangle in paintcomponent
plotting points again
Someone Please, Help.. having Syntax problems with p.getx().. PLEASE
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015