📄 connectingfc.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: ConnectingFC.java
import com.nokia.mid.ui.FullCanvas;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
public class ConnectingFC extends FullCanvas
implements Runnable
{
public ConnectingFC(Main main)
{
thr = null;
offscreen = Image.createImage(96, 65);
this.main = main;
Image img = main.loadImage("connection.png");
images = new Image[3];
images[0] = main.extractFrame(img, 90, 20, 0);
images[1] = main.extractFrame(img, 90, 20, 1);
images[2] = main.extractFrame(img, 90, 20, 2);
curImg = 0;
}
public void keyPressed(int i)
{
}
private void start()
{
if(thr == null)
{
thr = new Thread(this);
thr.start();
}
}
protected void paint(Graphics g)
{
start();
Graphics og = offscreen.getGraphics();
Image image = images[curImg];
og.setColor(0, 0, 0);
Graphics _tmp = g;
Graphics _tmp1 = g;
og.drawString("Connecting...", 5, 15, 4 | 0x10);
Graphics _tmp2 = g;
Graphics _tmp3 = g;
og.drawImage(image, 2, 32, 4 | 0x10);
main.paintCenter(g, offscreen);
}
public void run()
{
while(main.currentDA == this)
{
curImg++;
if(curImg >= images.length)
curImg = 0;
repaint();
try
{
Thread.currentThread();
Thread.sleep(300L);
}
catch(InterruptedException e) { }
}
thr = null;
}
private Main main;
private Image images[];
private int curImg;
private Thread thr;
private Image offscreen;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -