
-----------------------------------
Master
Wed Mar 03, 2004 12:00 am

calling static methods
-----------------------------------
How do you call a method like this. What parameter do you use when you call drawH(?, ?)
mine doenst work, no matter what i put.

public static void drawH(Graphics2D g2, Point2D.Double p)

-----------------------------------
wtd
Wed Mar 03, 2004 12:30 am


-----------------------------------
Exactly what error are you getting?

In Java a static method is called like so:


ClassTheMethodIsIn.method(params)


Rather than:


object.method(params)


-----------------------------------
Master
Wed Mar 03, 2004 12:32 am


-----------------------------------
ya i know

what parameter do you need for this calling of a static method

drawH(_, _)