import java.awt.*; import javax.swing.*; public class HTMLEditorDemo { public HTMLEditorDemo() { } public static void main(String[] args) { //Creates the frame containing the HTMLEditor JFrame jframe = new JFrame("Sferyx JSyndrome Editor"); jframe.setDefaultCloseOperation(jframe.EXIT_ON_CLOSE); //Sets the layout jframe.getContentPane().setLayout(new BorderLayout()); jframe.setSize(800, 600); //Instantiates the default configuration of the editor. For to customize the appearance //please refer to the documentation to the constructor HMTLEditor(boolean, boolean,....) //or using the methods setXXXXVisible(boolean) in order to show/hide menus,toolbars etc. sferyx.administration.editors.HTMLEditor htmlEditor=new sferyx.administration.editors.HTMLEditor(); jframe.getContentPane().add(htmlEditor); jframe.show(); //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. } }