Users Manual for Sferyx JSyndrome
Applet Edition
Sferyx
JSyndrome HTMLEditor Applet Edition Users Manual
Sample code for Sferyx JSyndrome
Component Edition
This is a simple application which
shows how easy is the creation of fully functional HTML editor using the
Sferyx JSyndrome HTMLEditor. The prerequisites for building this
application is that the JDK 1.4 is installed and the HTMLEditor.jar
inserted into the classpath. You can download the full source code for
this application here: HTMLEditorDemo.java
import java.awt.*;
import javax.swing.*;
public class HTMLEditorDemo
{
public HTMLEditorDemo()
{
}
public static void main(String[] args)
{
JFrame jframe = new JFrame("Sferyx JSyndrome Editor");
jframe.setDefaultCloseOperation(jframe.EXIT_ON_CLOSE);
jframe.getContentPane().setLayout(new BorderLayout());
jframe.setSize(800, 600);
sferyx.administration.editors.HTMLEditor htmlEditor=new sferyx.administration.editors.HTMLEditor();
jframe.getContentPane().add(htmlEditor);
jframe.show();
}
}
Instantiates the default configuration of the editor.
For to customize the appearance please refer to the documentation for the constructor
HMTLEditor(boolean, boolean,....) or using the methods setXXXXVisible(boolean) in order to show/hide
menus, toolbars etc. If desired, can
be used custom toolbars and menus and pass the action-commands to the action listener HTMLEditor.
Please refer to the documentation and especially to the method
actionPerformed(ActionEvent) for major details.