立体效果文字

public void paint(Graphics g) {

int x=100;
int y=100;
String str=new String("mafeng");
g.setColor(Color.darkGray);
Font font =new Font("华文行楷",Font.BOLD,72);
g.setFont(font);
for(int i=0;i<8;i++){
x++;
y++;
g.drawString(str, x, y);
i++;
}
g.setColor(Color.BLACK);
g.drawString(str, x, y);

}
}

posted @ 2015-04-27 17:28  ma_fighting  阅读(173)  评论(0编辑  收藏  举报
历史天气查