Program TestDialog.java

Tuesday, March 29, 2011 5:14 PM by Computer and Programming

import java.awt.*;

public class TesFDialog extends Frame {
   public static void main(String[] args) {
      TesFDialog apl = (1) new TesFDialog ();
   }

   (2) public  TesFDialog() {
      setSize(400, 150);

      FileDialog (3) fd = new FileDialog(
                             this, "Buka Berkas");
      fd.show();

      setTitle("Tes FileDialog. File: " +
               fd.getFile());     
      show();
   }
}

0 Response to "Program TestDialog.java"

Post a Comment