package com.shrimpking.t9;
import javax.swing.*;
import java.awt.*;
import java.util.Calendar;
/**
* Created by IntelliJ IDEA.
*
* @Author : Shrimpking
* @create 2024/10/2 21:11
*/
class ClockPanel extends JPanel{
int centerX; //中心
int centerY;
int radius; //半径
int hour; //时针
int minute; //分针
int second; //秒针
int width; //宽
int height; //高
@Override
protected void paintComponent(Graphics g)
{
super.paintComponent(g); //清除之前的画布
g.setColor(Color.BLACK);
g.drawString("12",centerX - 5,centerY - radius + 16);
g.drawString("6",centerX - 3,centerY + radius - 3);
g.drawString("9",centerX - radius + 3,centerY - 3);
g.drawString("3",c
CircleTimer9_11
最新推荐文章于 2025-01-16 20:26:18 发布
订阅专栏 解锁全文
1392

被折叠的 条评论
为什么被折叠?



