Java 类org.mozilla.javascript.tools.shell.ConsoleTextArea 实例源码

项目:whackpad    文件:SwingGui.java   
/**
 * Creates a new JSInternalConsole.
 */
public JSInternalConsole(String name) {
    super(name, true, false, true, true);
    consoleTextArea = new ConsoleTextArea(null);
    consoleTextArea.setRows(24);
    consoleTextArea.setColumns(80);
    JScrollPane scroller = new JScrollPane(consoleTextArea);
    setContentPane(scroller);
    pack();
    addInternalFrameListener(new InternalFrameAdapter() {
            @Override
            public void internalFrameActivated(InternalFrameEvent e) {
                // hack
                if (consoleTextArea.hasFocus()) {
                    consoleTextArea.getCaret().setVisible(false);
                    consoleTextArea.getCaret().setVisible(true);
                }
            }
        });
}
项目:code404    文件:SwingGui.java   
/**
 * Creates a new JSInternalConsole.
 */
public JSInternalConsole(String name) {
    super(name, true, false, true, true);
    consoleTextArea = new ConsoleTextArea(null);
    consoleTextArea.setRows(24);
    consoleTextArea.setColumns(80);
    JScrollPane scroller = new JScrollPane(consoleTextArea);
    setContentPane(scroller);
    pack();
    addInternalFrameListener(new InternalFrameAdapter() {
            @Override
            public void internalFrameActivated(InternalFrameEvent e) {
                // hack
                if (consoleTextArea.hasFocus()) {
                    consoleTextArea.getCaret().setVisible(false);
                    consoleTextArea.getCaret().setVisible(true);
                }
            }
        });
}
项目:S3F    文件:SwingGui.java   
/**
 * Creates a new JSInternalConsole.
 */
public JSInternalConsole(String name) {
    super(name, true, false, true, true);
    consoleTextArea = new ConsoleTextArea(null);
    consoleTextArea.setRows(24);
    consoleTextArea.setColumns(80);
    JScrollPane scroller = new JScrollPane(consoleTextArea);
    setContentPane(scroller);
    pack();
    addInternalFrameListener(new InternalFrameAdapter() {
            @Override
            public void internalFrameActivated(InternalFrameEvent e) {
                // hack
                if (consoleTextArea.hasFocus()) {
                    consoleTextArea.getCaret().setVisible(false);
                    consoleTextArea.getCaret().setVisible(true);
                }
            }
        });
}
项目:rhino-jscover    文件:SwingGui.java   
/**
 * Creates a new JSInternalConsole.
 */
public JSInternalConsole(String name) {
    super(name, true, false, true, true);
    consoleTextArea = new ConsoleTextArea(null);
    consoleTextArea.setRows(24);
    consoleTextArea.setColumns(80);
    JScrollPane scroller = new JScrollPane(consoleTextArea);
    setContentPane(scroller);
    pack();
    addInternalFrameListener(new InternalFrameAdapter() {
            @Override
            public void internalFrameActivated(InternalFrameEvent e) {
                // hack
                if (consoleTextArea.hasFocus()) {
                    consoleTextArea.getCaret().setVisible(false);
                    consoleTextArea.getCaret().setVisible(true);
                }
            }
        });
}
项目:astor    文件:SwingGui.java   
/**
 * Creates a new JSInternalConsole.
 */
public JSInternalConsole(String name) {
    super(name, true, false, true, true);
    consoleTextArea = new ConsoleTextArea(null);
    consoleTextArea.setRows(24);
    consoleTextArea.setColumns(80);
    JScrollPane scroller = new JScrollPane(consoleTextArea);
    setContentPane(scroller);
    pack();
    addInternalFrameListener(new InternalFrameAdapter() {
            @Override
            public void internalFrameActivated(InternalFrameEvent e) {
                // hack
                if (consoleTextArea.hasFocus()) {
                    consoleTextArea.getCaret().setVisible(false);
                    consoleTextArea.getCaret().setVisible(true);
                }
            }
        });
}
项目:Rhino-Prov-Mod    文件:SwingGui.java   
/**
 * Creates a new JSInternalConsole.
 */
public JSInternalConsole(String name) {
    super(name, true, false, true, true);
    consoleTextArea = new ConsoleTextArea(null);
    consoleTextArea.setRows(24);
    consoleTextArea.setColumns(80);
    JScrollPane scroller = new JScrollPane(consoleTextArea);
    setContentPane(scroller);
    pack();
    addInternalFrameListener(new InternalFrameAdapter() {
            @Override
            public void internalFrameActivated(InternalFrameEvent e) {
                // hack
                if (consoleTextArea.hasFocus()) {
                    consoleTextArea.getCaret().setVisible(false);
                    consoleTextArea.getCaret().setVisible(true);
                }
            }
        });
}
项目:closure-compiler-old    文件:SwingGui.java   
/**
 * Creates a new JSInternalConsole.
 */
public JSInternalConsole(String name) {
    super(name, true, false, true, true);
    consoleTextArea = new ConsoleTextArea(null);
    consoleTextArea.setRows(24);
    consoleTextArea.setColumns(80);
    JScrollPane scroller = new JScrollPane(consoleTextArea);
    setContentPane(scroller);
    pack();
    addInternalFrameListener(new InternalFrameAdapter() {
            @Override
            public void internalFrameActivated(InternalFrameEvent e) {
                // hack
                if (consoleTextArea.hasFocus()) {
                    consoleTextArea.getCaret().setVisible(false);
                    consoleTextArea.getCaret().setVisible(true);
                }
            }
        });
}
项目:closure-compiler-copy    文件:SwingGui.java   
/**
 * Creates a new JSInternalConsole.
 */
public JSInternalConsole(String name) {
    super(name, true, false, true, true);
    consoleTextArea = new ConsoleTextArea(null);
    consoleTextArea.setRows(24);
    consoleTextArea.setColumns(80);
    JScrollPane scroller = new JScrollPane(consoleTextArea);
    setContentPane(scroller);
    pack();
    addInternalFrameListener(new InternalFrameAdapter() {
            @Override
            public void internalFrameActivated(InternalFrameEvent e) {
                // hack
                if (consoleTextArea.hasFocus()) {
                    consoleTextArea.getCaret().setVisible(false);
                    consoleTextArea.getCaret().setVisible(true);
                }
            }
        });
}