?? rotatingcursor.java
字號:
package com.javapatterns.observertimer.cursor;
import javax.swing.Action;
import javax.swing.AbstractAction;
import javax.swing.Timer;
import java.awt.Cursor;
import java.awt.event.ActionEvent;
import java.applet.Applet;
public class RotatingCursor extends Applet
{
private Action timerAction;
private Timer timer;
public void init()
{
timerAction = new TimerAction(this);
timer = new Timer(300, timerAction);
timer.start();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -