Choice
Corresponding source code:
import java.applet.*;
import java.awt.*;
public class ChoiceWidget extends Applet {
public void init()
{
Choice rgb = new Choice();
rgb.addItem("Red");
rgb.addItem("Green");
rgb.addItem("Blue");
add(rgb);
}
}
Method(s) of note:
Related Magercise(s):