import org.kwis.msp.lcdui.*;
import org.kwis.msp.lwc.*;
public class fontTest extends Jlet
{
ShellComponent shell = new ShellComponent();
FontComponent font = new FontComponent();
protected void startApp(String[] args)
{
shell.addComponent(font);
shell.show();
}
protected void pauseApp(){}
protected void resumeApp(){}
protected void destroyApp(boolean b){}
}
//Component를 상속받는다.
class FontComponent extends Component
{
public void paintContent(Graphics g)
{
Font font;
font = Font.getDefaultFont();
g.setFont(font);
g.drawString("WIPI PROJECT", 10, 10, g.TOP);
font = Font.getFont();
g.setFont(font);
g.drawString();
}
}
댓글 영역