animationframe.java
来自「原创」· Java 代码 · 共 37 行
JAVA
37 行
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 + =
减小字号Ctrl + -
显示快捷键?