简体   繁体   中英

How can I run a applet in 2019

Is there any way to run this applet code?

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?

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);
  } 
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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