This problem is making me crazy. I have an application that creates two rectangles and two ellipses. I need to pass the information about those shapes to an applet to draw a car from them. I've tried this with no luck:
Rectangle carbody = ...
Rectangle cartop = ...
Ellipse2D fronttire =...
Ellipse2D reartire = ...
JDJprog.Paint(carbody, cartop, fronttire, reartire);
The error message I'm getting is that this static variable can't be applied to a nonstatic method. Does that make sense to anyone? Does anyone know how to pass these parameters to the applet?
Rectangle carbody = ...
Rectangle cartop = ...
Ellipse2D fronttire =...
Ellipse2D reartire = ...
JDJprog.Paint(carbody, cartop, fronttire, reartire);
The error message I'm getting is that this static variable can't be applied to a nonstatic method. Does that make sense to anyone? Does anyone know how to pass these parameters to the applet?