Skip to content

Commit

Permalink
Simple JApplet
Browse files Browse the repository at this point in the history
  • Loading branch information
nglthu committed Mar 7, 2024
1 parent e890617 commit fc69eda
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/mycompany/app/AppletExample/JApplet.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<applet code ="SimpleApplet.java" width = 300 height =300>

</applet>
13 changes: 13 additions & 0 deletions src/main/java/com/mycompany/app/AppletExample/simpleApplet.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.mycompany.app.AppletExample;
import javax.swing.*;
import javax.swing.JApplet;
import java.awt.*;

@SuppressWarnings("removal")
public class simpleApplet extends JApplet{
public void init(){
Container cp = getContentPane();
cp.add(new JLabel("Simple JApplet");
}

}

0 comments on commit fc69eda

Please sign in to comment.