Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide
this week in the
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.
I agree. Here's the link:
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