The simplest Java form example!

xiaoxiao2021-03-13  181

Package CS1;

Import java.awt. *;

Public Class Frame1 Extends Frame

{

Public frame1 (String Title)

{

Super (title); //

}

Public static void main (string args [])

{

Frame1 test = new frame1 ("wk");

Test.setlocation (100, 100);

Test.setsize (300, 300);

Test.setVisible (TRUE);

}

}

转载请注明原文地址:https://www.9cbs.com/read-129106.html

New Post(0)