{
Image image
int x
int y
public GraphicFrame(Image i,int x,int y)//在这里将image对象,还有起始的坐标传进去
{
this.image = i
this.x = x
this.y = y
}
public void paintComponent(Graphics g)
{
super.paintComponent(g)
drawImage(image, x, y, null)
}
}
欢迎分享,转载请注明来源:内存溢出
{
Image image
int x
int y
public GraphicFrame(Image i,int x,int y)//在这里将image对象,还有起始的坐标传进去
{
this.image = i
this.x = x
this.y = y
}
public void paintComponent(Graphics g)
{
super.paintComponent(g)
drawImage(image, x, y, null)
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)