绘制直线可以直接调用Graphics的()方法A. drawRect()B. drawLine()C. drawRoundRect()D. drawString()
绘制直线可以直接调用Graphics的()方法
A. drawRect()
B. drawLine()
C. drawRoundRect()
D. drawString()
相关考题:
在Applet画面的左上角至右下角画一条直线,则//draw处应如何选择?import java.awt.*;import java.applet.*;public class myApplet extends Applet {public void paint(Graphics g) {//draw}} A. g.drawLine(0,0,getHeight(),getWidth());B. g.drawLine(0,getWidth(),0,getHeight());C. g.drawLine(0,getWidth(),getHeight(),0);D. g.drawLine(getWidth(),getHeight(),0,0);
java.awt.Graphics 类的哪个方法可绘制填充矩形? A.fillRect()B.drawRect()C.fillOval()D.drawPolygon()E.drawLine()
进行图形绘制时需要调用Canvas类的方法,drawRect()方法可以用来绘制三角形的三条边。