Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Parameters

Status
Not open for further replies.

JJOHNS

MIS
Sep 12, 2001
171
0
0
US
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?
 
Send me your .java files to my email adress I will try to find a solution for that. Salih Sipahi
Software Engineer.
City of Istanbul Turkey
openyourmind77@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top