简体   繁体   English

我如何在2019年运行小程序

[英]How can I run a applet in 2019

Is there any way to run this applet code?有什么方法可以运行此applet代码吗?

I think there is something wrong with my code:我认为我的代码有问题:

import java.applet.*;

import java.awt.Graphics;

public class App extends Applet 
{
  public void paint (Graphics g) 
  {   
     g.drawString ("Hello World", 20, 20);
  } 
}

Is there any way to run this applet code?有什么方法可以运行此applet代码吗?

I think there is something wrong with my code:我认为我的代码有问题:

import java.applet.*;

import java.awt.Graphics;

public class App extends Applet 
{
  public void paint (Graphics g) 
  {   
     g.drawString ("Hello World", 20, 20);
  } 
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM