/** * Fail HelloFrame.java * @author Jaanus Poial * @version 0.1 kevad 99 */ //========================================================== // Programm, mis to"o"tab nii ka"surealt kui ka rakendina //========================================================== import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class HelloFrame extends Applet { public static void main (String[] parameetrid) { Frame raam = new Frame ("Minu tehtud raam"); raam.setSize (300,100); Applet rakend = new HelloFrame (); raam.add (rakend); raam.setVisible (true); raam.addWindowListener (new WindowAdapter () { public void windowClosing (WindowEvent e) { System.exit (0); } } ); } public void paint (Graphics ekraan) { ekraan.drawString ("Tere taas, veeb", 50, 25); } } // HelloFrame lopp