fortune.java
来自「Fortune algoithm files」· Java 代码 · 共 59 行
JAVA
59 行
// Decompiled by Jad v1.5.7c. Copyright 1997-99 Pavel Kouznetsov.// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html// Decompiler options: packfields(5) packimports(3) nocasts braces // Source File Name: Fortune.javaimport java.applet.Applet;import java.awt.*;public class Fortune extends Applet implements Runnable{ public void init() { setLayout(new BorderLayout()); canvas = new MyCanvas(getSize().width, getSize().height - 50, 85); add("North", new MySettings(canvas)); add("Center", canvas); add("South", controls = new MyControls(canvas)); } public void start() { if(thread == null) { thread = controls.thread = new Thread(this); thread.start(); } } public void run() { if(thread != null) { do { canvas.init(); while(canvas.singlestep()) { try { Thread.sleep(25L); } catch(InterruptedException _ex) { } } controls.threadRunning(false); } while(true); } else { return; } } MyCanvas canvas; MyControls controls; Thread thread;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?