/* * @(#)Applet01.java 1.0 01/11/29 * * You can modify the template of this file in the * directory ..\JCreator\Templates\Template_2\Project_Name.java * * You can also create your own project template by making a new * folder in the directory ..\JCreator\Template\. Use the other * templates as examples. * */ import java.awt.*; import java.applet.*; public class Applet01 extends Applet { Color color = new Color(0,0,255); Font font = new Font("Arial", Font.BOLD, 30); public void init() { } // konstruktori public void paint(Graphics g){ g.setFont(font); g.setColor(color); g.drawString("Moi siellä", 50, 60 ); } }