Graphics g画出来的多是2个
Graphicsg画出来的多是2条线2个方格classcanvextendsCanvas{protectedvoidpaint(Graphicsg){g.setColor...
Graphics g画出来的多是2条线 2个方格
class canv extends Canvas{
protected void paint(Graphics g) {
g.setColor(211, 21, 32);
g.drawLine(12, 21, 33, 44);
g.drawRect(22, 33, 43, 22);
}
public class canves2 extends MIDlet {
canv canv1=new canv();
private Display dis;
protected void startApp() throws MIDletStateChangeException {
dis = Display.getDisplay(this) ;
dis.setCurrent(canv1);
应该 1条线 一个方格才对啊
就这些啊 展开
class canv extends Canvas{
protected void paint(Graphics g) {
g.setColor(211, 21, 32);
g.drawLine(12, 21, 33, 44);
g.drawRect(22, 33, 43, 22);
}
public class canves2 extends MIDlet {
canv canv1=new canv();
private Display dis;
protected void startApp() throws MIDletStateChangeException {
dis = Display.getDisplay(this) ;
dis.setCurrent(canv1);
应该 1条线 一个方格才对啊
就这些啊 展开
4个回答
展开全部
ropd_fjjdfkjg_(kfh)jhrtjgkjd^**hfkhsgj
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
weihuidawentierhuida
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询