The compiler has problems with the arguments you pass to the constructor call. Take a look at the API documentation for the Rectangle class. You'll notice that there are many overloaded constructors for this class, but none of them takes a combination of int, int, double and double as arguments.
Joined: Oct 10, 2008
Ok, I managed my way around that. One other question...
Like I mentioned on my first post, I have 3 classes, 1 is the FlagViewer, another is the FlagComponent and the last one is the Flag class which draws the flags.
I have the default flag code in Flag class with its respective colors. On my FlagComponent class I tell the program to draw 2 more flags on different coordinates... I want to know how to change the colors of the flags, where do i put the code? in the FlagComponent class or the Flag class?
This is my code edited of the Flag class (if you need it);
[ October 10, 2008: Message edited by: Marco Segura ]