File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
How to draw triangle in paintcomponent
East JPanel and graphics
Someone Please, Help.. having Syntax problems with p.getx().. PLEASE
plotting points again
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014