题目内容
(请给出正确答案)
[单选题]
A.thoughtB.foughtC.oughtD.rough
A.thought
B.fought
C.ought
D.rough
查看答案
如果结果不匹配,请 联系老师 获取答案
A.thought
B.fought
C.ought
D.rough
下列JApplet使用重写paintCompon6t()方法来绘制图像,请填写正确的代码在横线处。 import java.awt.*; import javax.swing.*; public class Test extends JApplet { staic String fileName = "IMG nClick=over(this) title=放大().gif"; public void init() { Container cp = getContentPane(); cp.setLayout(new GridLayout(1,1)); Image i = getImage(getCodeBase(),fileName); MyImagePanel ip=new MyInmagePanel(i); cp.add (ip); } } class MyImagePanel extends JPanel { Image i; public MyImagePanel(Image IMG nClick=over(this) title=放大) { this.i = IMG nClick=over(this) title=放大; } public void paintComponent(Graphics gg) { 【 】; gg.drawImage(i,20,20,this); } }