// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

import com.hexidec.ekit.EkitCore;
import com.hexidec.ekit.EkitCoreSpecialSave;

public class Editor extends JFrame {
    public Editor() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        getContentPane().setLayout(new BorderLayout());
        EkitCore ec = new EkitCoreSpecialSave();
        getContentPane().add(ec, BorderLayout.CENTER);
        getContentPane().add(ec.getToolBar(true), BorderLayout.NORTH);
        setTitle("HTML editor via Ekit");
        pack();
    }
    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                JFrame f = new Editor();
                f.setVisible(true);
            }
        });
    }
}
