package net.py.lesson02;

/**
*功能:打印输出“购物清单”

  • 作者:彭毅
  • 日期:2019年3月7日
    */
    import java.applet.Applet;
    import java.awt.Color;
    import java.awt.Font;
    import java.awt.Graphics;

public class Studentlnfo extends Applet{
public void paint(Graphics g){
g.setColor(Color.YELLOW);
g.fillRect(0,0,this.getWidth(),this.getHeight());
g.setColor(new Color(0,0,225));
g.setFont(new Font(“黑体”,Font.BOLD,15));
g.drawString(“姓名:李平”,20,30);
g.drawString(“性别:男”,20,50);
g.drawString(“年龄:20”,20,70);
g.drawString(“专业:大数据”,20,90);
}
}
学生基本信息

相关文章:

  • 2021-07-24
  • 2021-04-06
  • 2021-07-06
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2021-04-16
猜你喜欢
  • 2021-04-21
  • 2021-12-05
  • 2021-07-01
  • 2021-11-19
  • 2021-04-23
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案