简体   繁体   English

用于Applet的Intellij IDEA设计器

[英]Intellij IDEA Designer for an Applet

I'm trying to design an applet using the designer delivered with Intellij IDEA. 我正在尝试使用Intellij IDEA随附的设计器来设计applet。 I have no idea where I can find an option to make one. 我不知道在哪里可以找到一种选择。 Solutions have been posted on the net, but seem to be outdated at the moment. 解决方案已发布在网上,但目前似乎已过时。

Create this class in your application 在您的应用程序中创建此类

import java.applet.Applet;
import java.awt.*;
public class Main extends Applet {
public void paint(Graphics g) {
    g.drawString("SALAM Applet", 20, 20);
    g.drawString("سلام اپلت", 20, 40);
}
}
  • Right click on your applet class and select create 'Main'. 右键单击您的applet类,然后选择创建“ Main”。
  • Click OK. 单击确定。
  • Run

for more information visit this link 有关更多信息,请访问此链接

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

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