import java.awt.*;
import java.applet.Applet;
/*<applet code = "listbox" width=200 height=300>
</applet>
*/
public class listbox extends Applet
{
public void init()
{
String [] fonts;
fonts = Toolkit.getDefaultToolkit().getFontList();
List a = new List(3,true);
List b = new List(3,false);
List c = new List(3,true);
for(int i=0;i<fonts.length;i++)
{
a.addItem(fonts[i]);
b.addItem(fonts[i]);
c.addItem(fonts[i]);
}
add(a);
add(b);
add(c);
}
}
import java.applet.Applet;
/*<applet code = "listbox" width=200 height=300>
</applet>
*/
public class listbox extends Applet
{
public void init()
{
String [] fonts;
fonts = Toolkit.getDefaultToolkit().getFontList();
List a = new List(3,true);
List b = new List(3,false);
List c = new List(3,true);
for(int i=0;i<fonts.length;i++)
{
a.addItem(fonts[i]);
b.addItem(fonts[i]);
c.addItem(fonts[i]);
}
add(a);
add(b);
add(c);
}
}
No comments:
Post a Comment