by Dinesh Thakur

 

import java.awt.*;

import javax.swing.*;
/*<APPLET  CODE = JavaExampleEditorPaneInJApplet.class WIDTH = 370 HEIGHT = 300></APPLET>*/
public class JavaExampleEditorPaneInJApplet extends JApplet
 {
    JEditorPane EdtrPn = new JEditorPane();
    public JavaExampleEditorPaneInJApplet()
      {
        Container Cntnr = getContentPane();
        EdtrPn.setEditable(true);
        EdtrPn.setText("Example Of Pane Editor!");
        Cntnr.add(new JScrollPane(EdtrPn));
      }
 }

JEditorPane Example in Java Swing