Simple Swing Java Applet

Below you will find the Java code for creating a simple Swing applet. Next step is to add and applet to your webpage. Unfortunatly i am not sure how this is done and if anyone can let me know i would be very gratefull.

The Java code for the above applet:

import java.awt.*;
import javax.swing.*;
public class helloWorldSwing extends JApplet {
JLabel valueLabel;
public void init() {
Container container = getContentPane();
container.setLayout(new FlowLayout());
valueLabel = new JLabel("Hello World", Label.LEFT);
container.add(valueLabel);
}
}


Related Articles

SAP Java development - Example code and information on various areas of Java development
Introduction to Java Applet development
AWT Java development
Simple Java Applet
Java code to implement close functionality into AWT design
Java code to implement close functionality into AWT design
Simple steps to setting up your SAP Java development environment
Configuring your java development platform
Create simple Java Application ('Hello world”)
Install SAP Netweaver development studio
Introduction
SAP Netweaver development studio
SAP Netweaver development studio is based on Eclipse
Code of simple Swing Java Applications
Code of simple Swing Java Applications
Java Swing development
Code of simple Swing Java Applications
Java swing code for creating a simple tree