public void paint (Graphics g)
{
super.paint (g);
int height = this.getHeight();
int width = this.getWidth();
String filename = "image/1.JPG";
Image image = null;
try{
image = ImageIO.read(new File(filename));//
}
catch(IOException e){}
//g.drawImage(image,0, 0, width, height,this);
g.drawRect(0, 0, width - 10, height - 10);
}
{
super.paint (g);
int height = this.getHeight();
int width = this.getWidth();
String filename = "image/1.JPG";
Image image = null;
try{
image = ImageIO.read(new File(filename));//
}
catch(IOException e){}
//g.drawImage(image,0, 0, width, height,this);
g.drawRect(0, 0, width - 10, height - 10);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货