- 2
- 0
- 约2.7千字
- 约 4页
- 2018-01-10 发布于河南
- 举报
java简易流动字幕代码(用电子时钟控制)
import java.awt.*;
import java.awt.event.*;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.*;
public class Ticker_Tape extends JFrame {
private Date now=new Date();
private Panel buttons=new Panel();
private Button button_start=new Button(启动);
private Button button_interrupt=new Button(停止);
private Clock time=new Clock();
private Label word=new Label(Welcom);
char space[]=new char[75];
public Ticker_Tape(){
super(滚动字);
this.setBounds(300,240,300,200);
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
this.setLayout(new GridL
原创力文档

文档评论(0)