⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 animationframe.java

📁 原创
💻 JAVA
字号:
package serviceServer;

import java.awt.*;

import javax.swing.BorderFactory;
import javax.swing.JScrollPane;

public class AnimationFrame extends ApplicationFrame{

	private static final long serialVersionUID = 6157155231594045294L;

	private static Label mStatusLabel = new Label();

	public AnimationFrame(DeskTop ac) {
		super("VNC v3.2");

		// Set up the scroll pane.
		JScrollPane pictureScrollPane = new JScrollPane(ac);
		pictureScrollPane.setPreferredSize(new Dimension(300, 250));
		pictureScrollPane.setViewportBorder(BorderFactory
				.createLineBorder(Color.black));
	
		setLayout(new BorderLayout());
		add(pictureScrollPane, BorderLayout.CENTER);
		add(mStatusLabel, BorderLayout.SOUTH);

		// Kick off the animation.
		Thread t = new Thread(ac);
		t.start();

		setVisible(true);
	}

	public static void notifyInf(String context) {
		mStatusLabel.setText(context);
	}
}

⌨️ 快捷键说明

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