private ImageIcon nodeFile;
private ImageIcon nodeDirectory;
File n = location==Location.Source?t.getSource():t.getDestination();
int x = location==Location.Source?2:2*16+2; if( n.exists() )
{
if( n.isDirectory() )
g.drawImage( nodeDirectory, x, 0 );
else g.drawImage( nodeFile, x, 0 );
}
这个g我怎样声明那
private ImageIcon nodeDirectory;
File n = location==Location.Source?t.getSource():t.getDestination();
int x = location==Location.Source?2:2*16+2; if( n.exists() )
{
if( n.isDirectory() )
g.drawImage( nodeDirectory, x, 0 );
else g.drawImage( nodeFile, x, 0 );
}
这个g我怎样声明那
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货