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);

}
}

相关文章:

  • 2021-11-17
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-05-11
  • 2021-12-06
  • 2021-07-11
猜你喜欢
  • 2022-12-23
  • 2022-01-25
  • 2021-05-21
  • 2021-07-06
  • 2022-02-10
  • 2021-06-22
相关资源
相似解决方案