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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? swinggui.java

?? 主要的怎么樣結(jié)合java 和 javascript!
?? JAVA
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
/* -*- 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;

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
风间由美中文字幕在线看视频国产欧美| 在线不卡中文字幕| 欧美二区在线观看| 国产精品美女www爽爽爽| 婷婷中文字幕一区三区| 97久久精品人人做人人爽| 精品日韩一区二区| 亚洲成a人v欧美综合天堂下载| 国产一区二区视频在线播放| 在线不卡a资源高清| 亚洲欧美日韩电影| av激情综合网| 亚洲国产精品99久久久久久久久| 免费成人av资源网| 日韩不卡在线观看日韩不卡视频| jizzjizzjizz欧美| 中文一区在线播放| 国产精品一区一区| 精品久久人人做人人爰| 丝袜亚洲精品中文字幕一区| 色天天综合久久久久综合片| 欧美韩国日本综合| 国产一区二区三区久久悠悠色av| 91精品麻豆日日躁夜夜躁| 亚洲电影你懂得| 欧美性猛交xxxxxx富婆| 亚洲一区二区在线免费观看视频| 99久久精品国产一区二区三区| 国产精品人人做人人爽人人添 | 捆绑调教美女网站视频一区| 欧美性xxxxxx少妇| 亚洲综合区在线| 欧美丝袜丝nylons| 婷婷成人综合网| 欧美一级黄色大片| 国产麻豆成人精品| 国产日产亚洲精品系列| 国产精品夜夜爽| 久久久欧美精品sm网站| 国产精品88av| 国产精品无人区| 91在线观看成人| 一区二区三区中文字幕精品精品| 91免费看`日韩一区二区| 亚洲国产精品一区二区www在线 | 国产精品99久久久久| 欧美激情在线看| 色88888久久久久久影院野外| 午夜视频在线观看一区二区| 亚洲欧美福利一区二区| 精品综合久久久久久8888| 欧美大片顶级少妇| 国产成人综合自拍| 亚洲欧美日韩国产一区二区三区| www.亚洲在线| 午夜欧美2019年伦理| 日韩欧美亚洲国产精品字幕久久久| 国产一区二区不卡| 亚洲男人的天堂av| 欧美一级片在线| 国产九色sp调教91| 国产永久精品大片wwwapp | 午夜久久电影网| 精品国产乱码91久久久久久网站| 成人亚洲一区二区一| 伊人一区二区三区| 日韩片之四级片| 91美女在线观看| 日韩高清不卡在线| 国产精品情趣视频| 欧美午夜精品久久久久久超碰| 黑人巨大精品欧美一区| 一区二区三区不卡在线观看| 日韩欧美自拍偷拍| 在线日韩国产精品| 国产精品资源在线观看| 一区二区三区四区五区视频在线观看| 欧美mv和日韩mv国产网站| 色婷婷av久久久久久久| 国产精品一区二区不卡| 青椒成人免费视频| 中文字幕综合网| 欧美电影免费观看高清完整版在| 99久久精品国产麻豆演员表| 精品综合久久久久久8888| 亚洲福利视频一区二区| 国产精品久久久久久久久晋中| 欧美一区永久视频免费观看| 91老师片黄在线观看| 国产成人亚洲精品狼色在线| 蜜桃免费网站一区二区三区| 一区二区三区加勒比av| 国产亚洲自拍一区| 欧美r级在线观看| 欧美美女一区二区| 在线一区二区三区四区| 99精品黄色片免费大全| 国产电影一区在线| 激情成人综合网| 久久成人免费电影| 日韩国产欧美三级| 美日韩一区二区| 日韩一级精品视频在线观看| 99视频精品免费视频| 亚洲免费观看在线观看| 91精品国产综合久久香蕉的特点 | 欧美自拍偷拍一区| 亚洲动漫第一页| 日本一区二区成人在线| 欧美在线观看视频一区二区| 国产一区二三区| 一区二区三区四区中文字幕| 国产欧美一区二区三区鸳鸯浴 | 午夜精品福利一区二区蜜股av | 五月开心婷婷久久| 亚洲高清免费在线| 亚洲国产日韩综合久久精品| 亚洲一区二区三区中文字幕在线| 一区二区三区在线观看网站| 自拍偷拍亚洲综合| 亚洲精品乱码久久久久| 亚洲综合丝袜美腿| 亚洲成a人片在线观看中文| 午夜伊人狠狠久久| 久久国产精品99久久久久久老狼| 日本女人一区二区三区| 日韩国产精品91| 韩国女主播一区二区三区| 国产美女在线精品| 成人av网站大全| 91精品办公室少妇高潮对白| 欧美日韩国产影片| 欧美成人伊人久久综合网| 国产日本欧美一区二区| 亚洲欧美国产高清| 日韩不卡一二三区| 国产精品亚洲人在线观看| 91在线视频免费91| 欧美狂野另类xxxxoooo| 久久久一区二区三区| 亚洲少妇屁股交4| 日韩一区精品字幕| 国产伦精品一区二区三区免费迷 | 亚洲精品高清视频在线观看| 亚洲一区自拍偷拍| 韩日av一区二区| 91日韩精品一区| 欧美成人伊人久久综合网| 成人免费一区二区三区在线观看| 亚洲va国产天堂va久久en| 国产精品中文字幕欧美| 91高清在线观看| 久久综合久久鬼色| 亚洲一区二区综合| 国产精品888| 欧美一区二区三区在线视频| 中文字幕中文字幕一区二区| 三级久久三级久久| 99精品欧美一区二区蜜桃免费 | 亚洲一区二区不卡免费| 韩国av一区二区| 91国模大尺度私拍在线视频| 久久久久久久网| 亚洲123区在线观看| 99在线精品一区二区三区| 日韩欧美国产一区二区三区| 亚洲免费观看高清完整| 国产成人精品影视| 日韩一区二区免费视频| 一区二区日韩电影| 成人久久视频在线观看| 26uuu亚洲婷婷狠狠天堂| 亚洲国产日产av| 91视频国产资源| 国产欧美一区二区精品忘忧草| 日欧美一区二区| 欧美性极品少妇| 亚洲精品成人精品456| 岛国av在线一区| 精品免费国产二区三区| 婷婷国产在线综合| 欧美色综合天天久久综合精品| 17c精品麻豆一区二区免费| 国产精品一区二区在线看| 日韩视频一区二区三区| 午夜精品视频在线观看| 色噜噜夜夜夜综合网| 最好看的中文字幕久久| 成人av在线电影| 国产精品三级av在线播放| 国产高清精品久久久久| 26uuu成人网一区二区三区| 另类成人小视频在线| 欧美成人国产一区二区| 婷婷丁香久久五月婷婷| 欧美老女人在线| 久久激情五月婷婷| 久久久久久久久久久99999| 韩国午夜理伦三级不卡影院| 久久奇米777|