Hi all,
I am new to designing
applets.
This is a simple question, How do you cause a line space in an applet. I tried System.out.println but this doesnt work.
I want a radio group to start in a new line.
here is my code:
import java.awt.*;
import java.applet.Applet;
public class myapplet1 extends Applet {
public void init() {
setBackground(Color.lightGray);
setForeground(Color.red);
TextField t = new TextField("Default Data");
t.setBackground(Color.white);
add(t);
Button b = new Button("Click");
add(b);
Checkbox c = new Checkbox("Select", false);
add(c);
//I want the line space here
CheckboxGroup group = new CheckboxGroup();
Checkbox g1 = new Checkbox("1",false,group);
Checkbox g2 = new Checkbox("2",false,group);
Checkbox g3 = new Checkbox("3",true,group);
add(g1);
add(g2);
add(g3);
}
}
If there are any problems with the code that you can notice please DO tell me.
Thanks in advance.
Zahid