ledclock.java

来自「some java example for learn how to use t」· Java 代码 · 共 24 行

JAVA
24
字号
package bitc;

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

import java.io.*;

import java.util.*;

public class LEDClock extends JPanel implements Serializable, Runnable {

	ImageIcon[] num =
		{new ImageIcon(LEDClock.class.getResource("images/0.gif")),
		 new ImageIcon(LEDClock.class.getResource("images/1.gif")),
		 new ImageIcon(LEDClock.class.getResource("images/2.gif")),
		 new ImageIcon(LEDClock.class.getResource("images/3.gif")),
		 new ImageIcon(LEDClock.class.getResource("images/4.gif")),
		 new ImageIcon(LEDClock.class.getResource("images/5.gif")),
		 new ImageIcon(LEDClock.class.getResource("images/6.gif")),
		 new ImageIcon(LEDClock.class.getResource("images/7.gif")),
		 new ImageIcon(LEDClock.class.getResource("images/8.gif")),
		 new ImageIcon(LEDClock.class.getResource("images/9.gif"))};
	//

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?