import java.awt.*;
import java.applet.Applet;
/* <applet code="lables" width=200 height=300>
</applet>
*/
public class lables extends Applet
{
public void init()
{
Label l;
String []fonts;
fonts = Toolkit.getDefaultToolkit().getFontList();
for(int i=0 ; i<(fonts.length) ; i++)
{
add( l = new Label (fonts[i] ));
l.setFont ( new Font(fonts[i] , Font.BOLD , 10+i*2 ));
}
}
}
import java.applet.Applet;
/* <applet code="lables" width=200 height=300>
</applet>
*/
public class lables extends Applet
{
public void init()
{
Label l;
String []fonts;
fonts = Toolkit.getDefaultToolkit().getFontList();
for(int i=0 ; i<(fonts.length) ; i++)
{
add( l = new Label (fonts[i] ));
l.setFont ( new Font(fonts[i] , Font.BOLD , 10+i*2 ));
}
}
}
No comments:
Post a Comment