Re: Method for White Circle with black background



Well I just need to know the method to make the black and white dot.
It is with a black background by default when the program runs and on
clicking a button it fills up then clicking on the button again
un-fills it. I could not think of any other way to keep a black
background when it's supposed to be white. If I just toggle between
colors then I tend to loose the border when it changes to white so it
is there but you cannot see it.

import aLibrary.*;
import java.awt.*;

public abstract class Dot extends AOval{

public Dot(int a, int b, int c, int d){
super(a,b,c,d);
}
public abstract void action();

}//end class

.


Quantcast