请将下列程序的空白处补充完整。Importjava.awt.*;PublicclassEll_4{Publicstaticvoidmain(Stringargs[]){Framef=newFrame(“BorderLayout”);fiadd(“North”,newbuRon(“North”));f.add(“East”,newbutton(“East”));f.add(“West”,newbutton(“West”));f.add(“South”,tf);f.setSize(200,200)fipack();fisetVisible(true);}}

请将下列程序的空白处补充完整。

Importjava.awt.*;

PublicclassEll_4

{

Publicstaticvoidmain(Stringargs[])

{

Framef=newFrame(“BorderLayout”);

fiadd(“North”,newbuRon(“North”));

f.add(“East”,newbutton(“East”));

f.add(“West”,newbutton(“West”));

f.add(“South”,tf);

f.setSize(200,200)

fipack();

fisetVisible(true);

}

}


相关考题:

下列Application程序中,指定v为32位整数类型,求出v的绝对值并输出,请将程序补充完整。class test19_1 {public static void main(String args[]) {______v=-100;char ch=______Math.______(v);System.out.println("ch="+ch);}}

(11 )下面程序运行时输出结果为C:\Program Files is a directory请将程序补充完整。import Java.io.*;public class DirTest{public static void main(String[] args){File myDir = new File( " C:/Program Files/ " );System.out.println(myDir + ( 【 11 】 .isDirectory() ? " is " : " is not " ) + " a directory. " );}}

下列程序的输出结果为2,请将程序补充完整。 inelude using namespace std; class Bas 下列程序的输出结果为2,请将程序补充完整。inelude<iostream.h>using namespace std;class Base{public:______ void fun( ){cout<<1;}};class Derived: public Base{pbulic:void fubn( ){cout<<2;}};int main( ){Base*P=new Derived;P→fun( );delete P;return 0;}

下列程序的输出结果为2,请将程序补充完整。 include using namespace std; class Basc 下列程序的输出结果为2,请将程序补充完整。include<iostream>using namespace std;class Basc{public:【 】void fun(){cout<<1;}};class Dcrived:public Base{public:void fun(){cout<<2;}};int main(){Base*p=new Derived;p->fun();delete p;return 0;}

请将下列程序的横线处补充完整,使得输出结果为bbaaincludeusing namespace std;class 请将下列程序的横线处补充完整,使得输出结果为bbaainclude<iostream>using namespace std;class A{public:______{cout<<"aa";}};class B:public A{public:~B(){cout<<"bb";}};int main(){B*p=new

请将下面的Applet程序补充完整。import java. awt. *;import java. applet. *;public class Hi【 】{public void paint(Graphics g){g. drawString("Hi!", 25, 25);}}

下面程序创建一个长宽均为100的Frame窗口,并且窗口的背景颜色是蓝色。请将程序补充完整。注意:不改动程序结构,不得增行或删行。import java.awt .*;public class ex1 extends Frame{public static void main(String[] args){ex1 t=new ex1();t.setSize(100,100);______t.setVisible(true);}}

下列程序的输出结果为2,请将程序补充完整。 include using namespace std; class Base 下列程序的输出结果为2,请将程序补充完整。include<iostream>using namespace std;class Base{public:______void fun(){cout<<1;}};class Derived:public Base{public:void fun(){cout<<2;}};int main(){Base*p=new Derived;p->fur();delete p;return 0;}

下列程序的输出结果为2,请将程序补充完整。 include using namespaee std; class B 下列程序的输出结果为2,请将程序补充完整。include <iostream>using namespaee std;class Base{public:______void fun( ){cout<<1;}};class Derived:public Base{public:void fun( ){cout<<2;}};int main( ){Base*P=new Derived:p->fun( );delete P;return 0;}