public JTextArea createTextArea()

in src/org/pushingpixels/lightbeam/componentsFactory/JBComponentsFactory.java [26:37]


    public JTextArea createTextArea(String text, int rows, int columns){
        JTextArea component = null;
        try {
            Class<?> jbClass = Class.forName("com.intellij.ui.components.JBTextArea");
            Constructor<?> constructor = jbClass.getConstructor(String.class, Integer.TYPE , Integer.TYPE);
            component = (JTextArea) constructor.newInstance(text, rows, columns);
        } catch (ClassNotFoundException | NoSuchMethodException | IllegalAccessException |
                InstantiationException | InvocationTargetException e) {
            e.printStackTrace();
        }
        return component;
    }