Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.applet.Applet;
import java.awt.Color;
import java.awt.Graphics;

public class Main extends Applet {
    public void init() {
        setBackground(Color.WHITE);
    }

    public void paint(Graphics g) {
        g.setColor(Color.BLACK);
        g.drawString("Applet background example", 0, 50);
    }
}