问题: 众所周知,很多软件会在某一个地方显示当前时间,以方便用户进行操作,今天我贴一段代码实现时间面板的构建和自动更新时间 图例: 代码: package Test.csdn; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Font; import java.awt.GridLayout; import java.util.Calendar; import java.util.Date; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.SwingConstants; public class TimePanel extends JFrame { /** * @Fields serialVersionUID : TODO */ private static final long serialVersionUID = 1L; private static JPanel panel; private static JLabel date; private static JLabel week; public static JLabel time; private static final Calendar NOW = Calendar.getInstance(); private static f