Applet在Eclipse中未初始化

时间:2015-11-06 05:54:25

标签: java eclipse applet

重新安装Eclipse,当我尝试运行我的Applet(使用Proclipsing)时,AppletViewer显示一个空白的白色屏幕,其中显示“Start:applet not initialized”。谁能帮我解决这个问题?非常感谢任何帮助。

package cells;

import processing.core.PApplet;


public class Cells extends PApplet {
    public float vy=4;
    public float vx=4;
    public void setup() {
        frameRate(100);
        size(1000, 1000);
        background(100);
    }

    public void draw() {
    }
}

1 个答案:

答案 0 :(得分:0)

尝试推杆:

protected override void OnStart(string[] args)
{
    eventLog1.WriteEntry("myTestService service started on " + DateTime.Now.ToString());
    //System.Diagnostics.Debugger.Launch();
    double processHour = Convert.ToDouble(ConfigurationManager.AppSettings["ProcessHour"]);
    DateTime dtStartDateTime = DateTime.Today.AddHours(processHour);
    DateTime dtNow = DateTime.Now;
    if (dtNow.Hour>= processHour)
    {
        dtStartDateTime = dtStartDateTime.AddDays(1);
    }
    System.TimeSpan diff = dtStartDateTime.Subtract(dtNow);
    timer1.Interval = diff.TotalMilliseconds;
    this.timer1.Elapsed += timer1_Elapsed;
    this.timer1.Start();
    eventLog1.WriteEntry("myTestService service exit from onStart at" + DateTime.Now.ToString());
}

private void timer1_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
timer1.Stop();
eventLog1.WriteEntry("myTestService timer1_Elapsed begin on " + DateTime.Now.ToString());
/*some logic*/
}

中的

PApplet.main(new String[]{"Package name/Package location + name"});