import java.awt.*; import java.awt.geom.*; import java.applet.*; public class Font1 extends Applet{ Font viltu=new Font("Times", Font.PLAIN, 21).deriveFont( AffineTransform.getShearInstance(Math.PI/6, 0) ); Font keeratud=new Font("Times", Font.PLAIN, 21).deriveFont( AffineTransform.getRotateInstance(Math.PI/4) ); public void start(){ try{Thread.sleep(3000);}catch(Exception e){} repaint(); } public void paint(Graphics g){ g.clipRect(0, 0, getSize().width, getSize().height); g.setFont(viltu); g.drawString("Tervitus", 50, 50); g.setFont(keeratud); g.drawString("Kuku", 100, 100); } public static void main(String argumendid[]){ Frame f=new Frame("Ruutfunktsiooni graafik"); f.add(new Font1()); f.setSize(250, 250); f.setVisible(true); } }