package org.swingeasy;

import java.awt.BorderLayout;
import java.awt.Container;
import java.io.IOException;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.WindowConstants;

/**
 * @author Jurgen
 */
public class TextAreaDemo {
    private static ETextArea addComponents(Container container) throws IOException {
        String text = new String(Resources.getResource("src/site/resources/version-history.txt"));
        ETextArea jtf = new ETextArea(new ETextAreaConfig(), text);
        container.add(new JScrollPane(jtf));
        container.add(jtf.getToolbar(), BorderLayout.NORTH);
        return jtf;
    }

    public static void main(String[] args) {
        UIUtils.systemLookAndFeel();
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        @SuppressWarnings("unused")
        ETextArea tc = null;
        try {
            tc = TextAreaDemo.addComponents(frame.getContentPane());
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        frame.setSize(400, 300);
        frame.setLocationRelativeTo(null);
        frame.setTitle("TextAreaDemo");
        frame.setVisible(true);
    }
}

@@ -611,16 +611,56 @@
 NORTH);%0A
+        EComponentPopupMenu.debug(jtf);%0A
         

debug info