亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? swinggui.java

?? 主要的怎么樣結合java 和 javascript!
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * The contents of this file are subject to the Netscape Public * License Version 1.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.mozilla.org/NPL/ * * Software distributed under the License is distributed on an "AS * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the License for the specific language governing * rights and limitations under the License. * * The Original Code is Rhino JavaScript Debugger code, released * November 21, 2000. * * The Initial Developer of the Original Code is SeeBeyond Corporation. * Portions created by SeeBeyond are * Copyright (C) 2000 SeeBeyond Technology Corporation. All * Rights Reserved. * * Contributor(s): * Igor Bukanov * Matt Gould * Christopher Oliver * * Alternatively, the contents of this file may be used under the * terms of the GNU Public License (the "GPL"), in which case the * provisions of the GPL are applicable instead of those above. * If you wish to allow use of your version of this file only * under the terms of the GPL and not to allow others to use your * version of this file under the NPL, indicate your decision by * deleting the provisions above and replace them with the notice * and other provisions required by the GPL.  If you do not delete * the provisions above, a recipient may use your version of this * file under either the NPL or the GPL. */package org.mozilla.javascript.tools.debugger;import javax.swing.*;import javax.swing.text.*;import javax.swing.event.*;import javax.swing.table.*;import java.awt.*;import java.awt.event.*;import java.util.*;import java.io.*;import javax.swing.tree.DefaultTreeCellRenderer;import javax.swing.tree.TreePath;import java.lang.reflect.Method;import org.mozilla.javascript.Kit;import org.mozilla.javascript.tools.shell.ConsoleTextArea;import org.mozilla.javascript.tools.debugger.downloaded.JTreeTable;import org.mozilla.javascript.tools.debugger.downloaded.TreeTableModel;import org.mozilla.javascript.tools.debugger.downloaded.TreeTableModelAdapter;class MessageDialogWrapper {    static void showMessageDialog(Component parent, String msg,                                  String title, int flags) {        if (msg.length() > 60) {            StringBuffer buf = new StringBuffer();            int len = msg.length();            int j = 0;            int i;            for (i = 0; i < len; i++, j++) {                char c = msg.charAt(i);                buf.append(c);                if (Character.isWhitespace(c)) {                    int remainder = len - i;                    int k;                    for (k = i + 1; k < len; k++) {                        if (Character.isWhitespace(msg.charAt(k))) {                            break;                        }                    }                    if (k < len) {                        int nextWordLen = k - i;                        if (j + nextWordLen > 60) {                            buf.append('\n');                            j = 0;                        }                    }                }            }            msg = buf.toString();        }        JOptionPane.showMessageDialog(parent, msg, title, flags);    }};class EvalTextArea    extends JTextArea implements KeyListener, DocumentListener{    static final long serialVersionUID = -3918033649601064194L;    SwingGui debugGui;    private java.util.Vector history;    private int historyIndex = -1;    private int outputMark = 0;    public void select(int start, int end) {        //requestFocus();        super.select(start, end);    }    public EvalTextArea(SwingGui debugGui) {        super();        this.debugGui = debugGui;        history = new java.util.Vector();        Document doc = getDocument();        doc.addDocumentListener(this);        addKeyListener(this);        setLineWrap(true);        setFont(new Font("Monospaced", 0, 12));        append("% ");        outputMark = doc.getLength();    }    synchronized void returnPressed() {        Document doc = getDocument();        int len = doc.getLength();        Segment segment = new Segment();        try {            doc.getText(outputMark, len - outputMark, segment);        } catch (javax.swing.text.BadLocationException ignored) {            ignored.printStackTrace();        }        String text = segment.toString();        if (debugGui.dim.stringIsCompilableUnit(text)) {            if (text.trim().length() > 0) {               history.addElement(text);               historyIndex = history.size();            }            append("\n");            String result = debugGui.dim.eval(text);            if (result.length() > 0) {                append(result);                append("\n");            }            append("% ");            outputMark = doc.getLength();        } else {            append("\n");        }    }    public void keyPressed(KeyEvent e) {        int code = e.getKeyCode();        if (code == KeyEvent.VK_BACK_SPACE || code == KeyEvent.VK_LEFT) {            if (outputMark == getCaretPosition()) {                e.consume();            }        } else if (code == KeyEvent.VK_HOME) {           int caretPos = getCaretPosition();           if (caretPos == outputMark) {               e.consume();           } else if (caretPos > outputMark) {               if (!e.isControlDown()) {                   if (e.isShiftDown()) {                       moveCaretPosition(outputMark);                   } else {                       setCaretPosition(outputMark);                   }                   e.consume();               }           }        } else if (code == KeyEvent.VK_ENTER) {            returnPressed();            e.consume();        } else if (code == KeyEvent.VK_UP) {            historyIndex--;            if (historyIndex >= 0) {                if (historyIndex >= history.size()) {                    historyIndex = history.size() -1;                }                if (historyIndex >= 0) {                    String str = (String)history.elementAt(historyIndex);                    int len = getDocument().getLength();                    replaceRange(str, outputMark, len);                    int caretPos = outputMark + str.length();                    select(caretPos, caretPos);                } else {                    historyIndex++;                }            } else {                historyIndex++;            }            e.consume();        } else if (code == KeyEvent.VK_DOWN) {            int caretPos = outputMark;            if (history.size() > 0) {                historyIndex++;                if (historyIndex < 0) {historyIndex = 0;}                int len = getDocument().getLength();                if (historyIndex < history.size()) {                    String str = (String)history.elementAt(historyIndex);                    replaceRange(str, outputMark, len);                    caretPos = outputMark + str.length();                } else {                    historyIndex = history.size();                    replaceRange("", outputMark, len);                }            }            select(caretPos, caretPos);            e.consume();        }    }    public void keyTyped(KeyEvent e) {        int keyChar = e.getKeyChar();        if (keyChar == 0x8 /* KeyEvent.VK_BACK_SPACE */) {            if (outputMark == getCaretPosition()) {                e.consume();            }        } else if (getCaretPosition() < outputMark) {            setCaretPosition(outputMark);        }    }    public synchronized void keyReleased(KeyEvent e) {    }    public synchronized void write(String str) {        insert(str, outputMark);        int len = str.length();        outputMark += len;        select(outputMark, outputMark);    }    public synchronized void insertUpdate(DocumentEvent e) {        int len = e.getLength();        int off = e.getOffset();        if (outputMark > off) {            outputMark += len;        }    }    public synchronized void removeUpdate(DocumentEvent e) {        int len = e.getLength();        int off = e.getOffset();        if (outputMark > off) {            if (outputMark >= off + len) {                outputMark -= len;            } else {                outputMark = off;            }        }    }    public synchronized void postUpdateUI() {        // this attempts to cleanup the damage done by updateComponentTreeUI        //requestFocus();        setCaret(getCaret());        select(outputMark, outputMark);    }    public synchronized void changedUpdate(DocumentEvent e) {    }};class EvalWindow    extends JInternalFrame implements ActionListener{    static final long serialVersionUID = -2860585845212160176L;    EvalTextArea evalTextArea;    public void setEnabled(boolean b) {        super.setEnabled(b);        evalTextArea.setEnabled(b);    }    public EvalWindow(String name, SwingGui debugGui) {        super(name, true, false, true, true);        evalTextArea = new EvalTextArea(debugGui);        evalTextArea.setRows(24);        evalTextArea.setColumns(80);        JScrollPane scroller = new JScrollPane(evalTextArea);        setContentPane(scroller);        //scroller.setPreferredSize(new Dimension(600, 400));        pack();        setVisible(true);    }    public void actionPerformed(ActionEvent e) {        String cmd = e.getActionCommand();        if (cmd.equals("Cut")) {            evalTextArea.cut();        } else if (cmd.equals("Copy")) {            evalTextArea.copy();        } else if (cmd.equals("Paste")) {            evalTextArea.paste();        }    }};class JSInternalConsole    extends JInternalFrame implements ActionListener{    static final long serialVersionUID = -5523468828771087292L;    ConsoleTextArea consoleTextArea;    public InputStream getIn() {        return consoleTextArea.getIn();    }    public PrintStream getOut() {        return consoleTextArea.getOut();    }    public PrintStream getErr() {        return consoleTextArea.getErr();    }    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() {                public void internalFrameActivated(InternalFrameEvent e) {                    // hack                    if (consoleTextArea.hasFocus()) {                        consoleTextArea.getCaret().setVisible(false);                        consoleTextArea.getCaret().setVisible(true);                    }                }            });    }    public void actionPerformed(ActionEvent e) {        String cmd = e.getActionCommand();        if (cmd.equals("Cut")) {            consoleTextArea.cut();        } else if (cmd.equals("Copy")) {            consoleTextArea.copy();        } else if (cmd.equals("Paste")) {            consoleTextArea.paste();        }    }};class FilePopupMenu extends JPopupMenu{    static final long serialVersionUID = 3589525009546013565L;    FileTextArea w;    int x, y;    FilePopupMenu(FileTextArea w) {        super();        this.w = w;        JMenuItem item;        add(item = new JMenuItem("Set Breakpoint"));        item.addActionListener(w);        add(item = new JMenuItem("Clear Breakpoint"));        item.addActionListener(w);        add(item = new JMenuItem("Run"));        item.addActionListener(w);    }    void show(JComponent comp, int x, int y) {        this.x = x;        this.y = y;        super.show(comp, x, y);    }};class FileTextArea extends JTextArea    implements ActionListener, PopupMenuListener, KeyListener, MouseListener{    static final long serialVersionUID = -25032065448563720L;    FileWindow w;    FilePopupMenu popup;    FileTextArea(FileWindow w) {        this.w = w;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产91洋老外米糕| 国产一区中文字幕| 国产成人自拍在线| 成人免费av资源| 日韩精品中文字幕一区二区三区| 三级成人在线视频| **性色生活片久久毛片| 日本不卡的三区四区五区| 91国在线观看| 国产99久久久精品| 免费观看30秒视频久久| 亚洲精品ww久久久久久p站| 2022国产精品视频| 欧美夫妻性生活| 在线观看国产一区二区| 成人av影视在线观看| 国产自产视频一区二区三区| 日韩成人午夜精品| 亚洲国产综合91精品麻豆| 成人免费在线视频| 久久久精品免费免费| 精品美女在线观看| 91精品国产综合久久久久久久久久 | 老司机免费视频一区二区三区| 亚洲美女视频在线| 国产精品久久久久久久久免费丝袜| 久久久九九九九| 26uuu亚洲| 精品国产乱码久久久久久夜甘婷婷| 欧美日韩一级黄| 欧美综合久久久| 色婷婷av一区| 99re亚洲国产精品| 99re66热这里只有精品3直播 | 一区二区三区在线免费播放| 中文字幕一区在线观看视频| 国产精品久久久久久户外露出| 中文成人av在线| 国产精品久久久久三级| 亚洲欧洲成人av每日更新| 中文字幕+乱码+中文字幕一区| 国产精品日日摸夜夜摸av| 国产精品久久久久影院老司| 中文字幕欧美一| 亚洲欧美另类小说视频| 一区二区三区在线视频免费 | 国产91精品免费| 成人精品小蝌蚪| gogogo免费视频观看亚洲一| 91在线精品一区二区| 99国产精品久久久久| 在线免费观看成人短视频| 欧美色视频一区| 日韩欧美在线不卡| 精品对白一区国产伦| 中文字幕巨乱亚洲| 亚洲狠狠丁香婷婷综合久久久| 亚洲小说欧美激情另类| 蜜臀av一区二区| 国产乱人伦偷精品视频免下载| 国产v综合v亚洲欧| 一本久久综合亚洲鲁鲁五月天 | 麻豆精品视频在线观看免费| 国产成人精品三级| 99精品视频在线播放观看| 欧美日韩三级在线| 精品美女在线播放| 国产精品国产三级国产aⅴ无密码| 亚洲精品视频免费看| 日日夜夜一区二区| 国产成+人+日韩+欧美+亚洲| 色综合久久中文字幕| 8x8x8国产精品| 欧美国产一区二区| 亚洲国产日韩a在线播放性色| 麻豆国产欧美日韩综合精品二区| 成人小视频免费观看| 欧美日韩国产一区| 久久久噜噜噜久久人人看| 亚洲青青青在线视频| 青娱乐精品在线视频| av一区二区不卡| 日韩一区二区在线播放| 亚洲日本电影在线| 九色综合狠狠综合久久| 91影视在线播放| 精品国产青草久久久久福利| **性色生活片久久毛片| 精品一区二区三区在线观看 | 国产精品18久久久| 91国偷自产一区二区三区观看| 精品理论电影在线观看 | 久久国产成人午夜av影院| 成人福利电影精品一区二区在线观看| 欧美日韩视频一区二区| 国产精品女主播在线观看| 久久精品二区亚洲w码| 在线亚洲一区观看| 国产色一区二区| 男男视频亚洲欧美| 色妞www精品视频| 国产欧美精品一区aⅴ影院| 青青草成人在线观看| 色av成人天堂桃色av| 久久久久久夜精品精品免费| 五月天激情小说综合| 91色综合久久久久婷婷| 欧美激情一区二区三区不卡 | 精品国产免费视频| 午夜在线电影亚洲一区| 91女人视频在线观看| 久久久影院官网| 免费观看日韩电影| 欧美夫妻性生活| 亚洲一区二区三区精品在线| 92精品国产成人观看免费| 久久久久久一级片| 久久se这里有精品| 欧美一区日本一区韩国一区| 亚洲国产欧美在线| 91久久免费观看| 国产精品无圣光一区二区| 国产精品888| 精品久久久久久久一区二区蜜臀| 亚洲夂夂婷婷色拍ww47| 91麻豆免费视频| 国产精品高清亚洲| 风间由美一区二区三区在线观看| 亚洲精品在线三区| 久久99国产精品免费| 日韩欧美成人午夜| 老司机精品视频导航| 欧美哺乳videos| 久久精品国产亚洲一区二区三区| 欧美一区二区久久| 日本vs亚洲vs韩国一区三区| 91麻豆精品国产无毒不卡在线观看| 舔着乳尖日韩一区| 欧美日韩在线三区| 日韩电影在线一区| 日韩亚洲欧美高清| 狠狠v欧美v日韩v亚洲ⅴ| 欧美成人vr18sexvr| 久久69国产一区二区蜜臀| 337p日本欧洲亚洲大胆色噜噜| 久久99久久久欧美国产| 久久亚洲一级片| 成人美女在线视频| 亚洲精品乱码久久久久| 在线观看欧美日本| 日本午夜一区二区| 欧美电影免费观看高清完整版在线 | 成人久久久精品乱码一区二区三区| 欧美韩国日本不卡| 一本大道久久a久久综合婷婷| 亚洲免费av观看| 欧美精品在线观看一区二区| 日本午夜一区二区| 久久久午夜精品| 91欧美一区二区| 日韩激情一二三区| 久久亚洲精华国产精华液 | 另类综合日韩欧美亚洲| 久久久www免费人成精品| 不卡一区在线观看| 亚洲网友自拍偷拍| 日韩欧美久久久| av在线不卡网| 日日摸夜夜添夜夜添亚洲女人| 日韩限制级电影在线观看| 成人综合在线网站| 亚洲成人在线网站| 久久久久久久久99精品| 91社区在线播放| 老司机精品视频在线| 国产精品久久久久三级| 欧美日韩激情一区二区三区| 黄色日韩网站视频| 夜夜嗨av一区二区三区中文字幕| 337p亚洲精品色噜噜狠狠| 国产69精品久久99不卡| 亚洲已满18点击进入久久| xf在线a精品一区二区视频网站| 一本色道**综合亚洲精品蜜桃冫| 免费欧美高清视频| ●精品国产综合乱码久久久久| 欧美猛男男办公室激情| 国产成人自拍在线| 日日欢夜夜爽一区| 亚洲欧美在线另类| 精品精品国产高清一毛片一天堂| 99久久精品情趣| 久久99精品久久久久久动态图| 亚洲精品国产一区二区精华液| 精品剧情在线观看| 在线一区二区三区| 春色校园综合激情亚洲| 毛片一区二区三区| 亚洲国产日韩综合久久精品| 国产精品亲子伦对白|