Hi I am trying to implement RadioButtons which is a subclass of GUIelements. In the drawing part I was asked to override the superclass draw method and draw a circle . It should also draw its text just to the right of the button and I was asked to leave a space between the button and the text. How do I leave a blank space here . So far I was able to write this.
public class RadioButton extends GUIelements {
public RadioButton(xc,yc,radius,title,hilite,g){
super(xc,yc,radius,title,hilite,g);
}
public void draw(){
StdDraw.setPenColor(StdDraw.WHITE);
StdDraw.filledCircle(xc,yc,radius);
StdDraw.setPenColor(StdDraw.BLACK);
StdDraw.setPenRadius();
StdDraw.circle(xc,yc,radius);
StdDraw.textLeft(xc,yc,String);
}