Blog o’ Will Cook for Food
Not just another Wordpress blog

Archive for May, 2008

5.6, 6.8

May 6, 2008

5.6
1.
To scale the panel size to the image displayed, use the getPanelWidth() and getPanelHeight() functions
2.
Circle(double x, double y, double r, Color c)
double z = scanner.nextDouble()
void setRadius(double z)
3.
for detecting mouse motion, the method MouseMotionAdapter is used.
for detecting mouse clicking, the method MouseAdapter is used.
6.8
1.
to set up a timer, you must use the methods start and actionPerformed. [...]