题目内容

According to the text, the best host()

A. tries his best to make his guests feel comfortable
B. makes his guests feel excited
C. tries to avoid being naughty to his guests
D. tries to avoid being foolish

查看答案
更多问题

下列JApplet实现了一个不可编辑的JTextArea和一个JButton。请填写正确的程序代码。 import javax.swing.*; import java.awt.*; public class Testl7 extends JApplet JTextArea jta; public void init() Container cp=getContentPane(); cp.setLayout(new GridLayeut(2,1)); jta=new JTextArea(30,30); jta.setEditable(true); 【15】 jta.setText(“你好”); JButton jb=new JButton ("Ok"); cp.add(jb);

Why was the businessman not satisfied with his secretary()

A. He had given the same speech three times.
B. His speech lasted for an hour.
C. He had made three speeches.
D. The speech was not well written.

Applet生命周期方法有init()、 【15】 、stop()和destroy()。

下面程序的输出结果是( )。 import java. awt.*; import java. applet.*; public class HelloApplet extends Applet public void paint(Graphics g) g.drawString("Hello World! ",20,20);

A. 20,20
B. Hello World!
C. 编译不能通过
D. 以上都不对

答案查题题库