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

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

?? basictextui.java

?? java jdk 1.4的源碼
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
	}	return map;    }    /**     * Invoked when the focus accelerator changes, this will update the     * key bindings as necessary.     */    void updateFocusAcceleratorBinding(boolean changed) {	char accelerator = editor.getFocusAccelerator();	if (changed || accelerator != '\0') {	    InputMap km = SwingUtilities.getUIInputMap		        (editor, JComponent.WHEN_IN_FOCUSED_WINDOW);	    if (km == null && accelerator != '\0') {		km = new ComponentInputMapUIResource(editor);		SwingUtilities.replaceUIInputMap(editor, JComponent.						 WHEN_IN_FOCUSED_WINDOW, km);		ActionMap am = getActionMap();		SwingUtilities.replaceUIActionMap(editor, am);	    }	    if (km != null) {		km.clear();		if (accelerator != '\0') {		    km.put(KeyStroke.getKeyStroke(accelerator,						  ActionEvent.ALT_MASK),			   "requestFocus");		}	    }	}    }    /**     * Invoked when editable property is changed.     *     * removing 'TAB' and 'SHIFT-TAB' from traversalKeysSet in case      * editor is editable     * adding 'TAB' and 'SHIFT-TAB' to traversalKeysSet in case      * editor is non editable     */     void updateFocusTraversalKeys() {	/*	 * Fix for 4514331 Non-editable JTextArea and similar 	 * should allow Tab to keyboard - accessibility 	 */	EditorKit editorKit = getEditorKit(editor);	if ( editorKit != null	     && editorKit instanceof DefaultEditorKit) {	    Set storedForwardTraversalKeys = editor.		getFocusTraversalKeys(KeyboardFocusManager.				      FORWARD_TRAVERSAL_KEYS);	    Set storedBackwardTraversalKeys = editor.		getFocusTraversalKeys(KeyboardFocusManager.				      BACKWARD_TRAVERSAL_KEYS);	    Set forwardTraversalKeys = 		new HashSet(storedForwardTraversalKeys);	    Set backwardTraversalKeys = 		new HashSet(storedBackwardTraversalKeys);	    if (editor.isEditable()) {		forwardTraversalKeys.		    remove(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));		backwardTraversalKeys.		    remove(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 						  InputEvent.SHIFT_MASK));	    } else {		forwardTraversalKeys.add(KeyStroke.					 getKeyStroke(KeyEvent.VK_TAB, 0));		backwardTraversalKeys.		    add(KeyStroke.			getKeyStroke(KeyEvent.VK_TAB, InputEvent.SHIFT_MASK));	    }	    editor.setFocusTraversalKeys(KeyboardFocusManager.					 FORWARD_TRAVERSAL_KEYS, 					 forwardTraversalKeys);	    editor.setFocusTraversalKeys(KeyboardFocusManager.					 BACKWARD_TRAVERSAL_KEYS, 					 backwardTraversalKeys);	}    }    /**     * Returns the <code>TransferHandler</code> that will be installed if     * their isn't one installed on the <code>JTextComponent</code>.     */    TransferHandler getTransferHandler() {        return defaultTransferHandler;    }    /**     * Fetch an action map to use.     */    ActionMap getActionMap() {	String mapName = getPropertyPrefix() + ".actionMap";	ActionMap map = (ActionMap)UIManager.get(mapName);	if (map == null) {	    map = createActionMap();	    if (map != null) {		UIManager.getLookAndFeelDefaults().put(mapName, map);	    }	}        ActionMap componentMap = new ActionMapUIResource();        componentMap.put("requestFocus", new FocusAction());	/* 	 * fix for bug 4515750 	 * JTextField & non-editable JTextArea bind return key - default btn not accessible	 *	 * Wrap the return action so that it is only enabled when the	 * component is editable. This allows the default button to be	 * processed when the text component has focus and isn't editable.	 * 	 */	if (getEditorKit(editor) instanceof DefaultEditorKit) {	    if (map != null) {		Object obj = map.get(DefaultEditorKit.insertBreakAction);		if (obj != null  		    && obj instanceof DefaultEditorKit.InsertBreakAction) {		    Action action =  new TextActionWrapper((TextAction)obj);		    componentMap.put(action.getValue(Action.NAME),action);		}	    }	}        if (map != null) {            componentMap.setParent(map);        }	return componentMap;    }    /**     * Create a default action map.  This is basically the     * set of actions found exported by the component.     */    ActionMap createActionMap() {	ActionMap map = new ActionMapUIResource();	Action[] actions = editor.getActions();	//System.out.println("building map for UI: " + getPropertyPrefix());	int n = actions.length;	for (int i = 0; i < n; i++) {	    Action a = actions[i];	    map.put(a.getValue(Action.NAME), a);	    //System.out.println("  " + a.getValue(Action.NAME));	}        map.put(TransferHandler.getCutAction().getValue(Action.NAME),                TransferHandler.getCutAction());        map.put(TransferHandler.getCopyAction().getValue(Action.NAME),                TransferHandler.getCopyAction());        map.put(TransferHandler.getPasteAction().getValue(Action.NAME),                TransferHandler.getPasteAction());	return map;    }    protected void uninstallKeyboardActions() {        editor.setKeymap(null);	SwingUtilities.replaceUIInputMap(editor, JComponent.					 WHEN_IN_FOCUSED_WINDOW, null);	SwingUtilities.replaceUIActionMap(editor, null);    }        /**     * Paints a background for the view.  This will only be     * called if isOpaque() on the associated component is     * true.  The default is to paint the background color      * of the component.     *     * @param g the graphics context     */    protected void paintBackground(Graphics g) {        g.setColor(editor.getBackground());        g.fillRect(0, 0, editor.getWidth(), editor.getHeight());    }    /**     * Fetches the text component associated with this     * UI implementation.  This will be null until     * the ui has been installed.     *     * @return the editor component     */    protected final JTextComponent getComponent() {        return editor;    }    /**     * Flags model changes.     * This is called whenever the model has changed.     * It is implemented to rebuild the view hierarchy     * to represent the default root element of the     * associated model.     */    protected void modelChanged() {        // create a view hierarchy        ViewFactory f = rootView.getViewFactory();        Document doc = editor.getDocument();        Element elem = doc.getDefaultRootElement();        setView(f.create(elem));    }    /**     * Sets the current root of the view hierarchy and calls invalidate().     * If there were any child components, they will be removed (i.e.     * there are assumed to have come from components embedded in views).     *     * @param v the root view     */    protected final void setView(View v) {	editor.removeAll();        rootView.setView(v);        painted = false;        editor.revalidate();        editor.repaint();    }    /**     * Paints the interface safely with a guarantee that     * the model won't change from the view of this thread.       * This does the following things, rendering from      * back to front.     * <ol>     * <li>     * If the component is marked as opaque, the background     * is painted in the current background color of the     * component.     * <li>     * The highlights (if any) are painted.     * <li>     * The view hierarchy is painted.     * <li>     * The caret is painted.     * </ol>     *     * @param g the graphics context     */    protected void paintSafely(Graphics g) {	painted = true;	Highlighter highlighter = editor.getHighlighter();	Caret caret = editor.getCaret();		// paint the background	if (editor.isOpaque()) {	    paintBackground(g);	}		// paint the highlights	if (highlighter != null) {	    highlighter.paint(g);	}	// paint the view hierarchy	Rectangle alloc = getVisibleEditorRect();	rootView.paint(g, alloc);	    	// paint the caret	if (caret != null) {	    caret.paint(g);	}    }    // --- ComponentUI methods --------------------------------------------    /**     * Installs the UI for a component.  This does the following     * things.     * <ol>     * <li>     * Set the associated component to opaque (can be changed     * easily by a subclass or on JTextComponent directly),     * which is the most common case.  This will cause the     * component's background color to be painted.     * <li>     * Install the default caret and highlighter into the      * associated component.     * <li>     * Attach to the editor and model.  If there is no      * model, a default one is created.     * <li>     * create the view factory and the view hierarchy used     * to represent the model.     * </ol>     *     * @param c the editor component     * @see ComponentUI#installUI     */    public void installUI(JComponent c) {        if (c instanceof JTextComponent) {            editor = (JTextComponent) c;            // install defaults            installDefaults();            // common case is background painted... this can            // easily be changed by subclasses or from outside            // of the component.            editor.setOpaque(true);            editor.setAutoscrolls(true);            // attach to the model and editor            editor.addPropertyChangeListener(updateHandler);            Document doc = editor.getDocument();            if (doc == null) {                // no model, create a default one.  This will                // fire a notification to the updateHandler                 // which takes care of the rest.                 editor.setDocument(getEditorKit(editor).createDefaultDocument());            } else {                doc.addDocumentListener(updateHandler);                modelChanged();            }            // install keymap            installListeners();            installKeyboardActions();	    LayoutManager oldLayout = editor.getLayout();	    if ((oldLayout == null) || (oldLayout instanceof UIResource)) {		// by default, use default LayoutManger implementation that		// will position the components associated with a View object.		editor.setLayout(updateHandler);	    }        } else {            throw new Error("TextUI needs JTextComponent");        }    }    /**     * Deinstalls the UI for a component.  This removes the listeners,     * uninstalls the highlighter, removes views, and nulls out the keymap.     *     * @param c the editor component     * @see ComponentUI#uninstallUI     */    public void uninstallUI(JComponent c) {        // detach from the model        editor.removePropertyChangeListener(updateHandler);        editor.getDocument().removeDocumentListener(updateHandler);        // view part        painted = false;        uninstallDefaults();        rootView.setView(null);        c.removeAll();	LayoutManager lm = c.getLayout();	if (lm instanceof UIResource) {	    c.setLayout(null);	}        // controller part        uninstallKeyboardActions();        uninstallListeners();    }    /**     * Superclass paints background in an uncontrollable way     * (i.e. one might want an image tiled into the background).     * To prevent this from happening twice, this method is     * reimplemented to simply paint.     * <p>     * <em>NOTE:</em> Superclass is also not thread-safe in      * it's rendering of the background, although that's not     * an issue with the default rendering.     */    public void update(Graphics g, JComponent c) {	paint(g, c);    }    /**     * Paints the interface.  This is routed to the     * paintSafely method under the guarantee that     * the model won't change from the view of this thread     * while it's rendering (if the associated model is     * derived from AbstractDocument).  This enables the      * model to potentially be updated asynchronously.     *     * @param g the graphics context     * @param c the editor component     */    public final void paint(Graphics g, JComponent c) {	if ((rootView.getViewCount() > 0) && (rootView.getView(0) != null)) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一级免费观看| 在线免费av一区| 精品国精品自拍自在线| 视频一区中文字幕| 正在播放亚洲一区| 黑人巨大精品欧美黑白配亚洲| 日韩免费高清av| 国内欧美视频一区二区| 国产精品卡一卡二| 在线影院国内精品| 亚洲国产精品久久一线不卡| 91.麻豆视频| 国产成人丝袜美腿| 亚洲三级免费观看| 91.成人天堂一区| 国产高清一区日本| 亚洲午夜视频在线观看| 欧美一区二区福利在线| 国产精品456露脸| 亚洲欧美激情在线| 日韩免费成人网| av电影天堂一区二区在线观看| 夜夜嗨av一区二区三区网页| 日韩一区二区高清| 95精品视频在线| 五月天久久比比资源色| 2014亚洲片线观看视频免费| 色老头久久综合| 精品一区二区免费在线观看| 日韩美女久久久| 日韩欧美激情一区| 白白色 亚洲乱淫| 久久疯狂做爰流白浆xx| 亚洲欧美一区二区不卡| 精品国产免费一区二区三区香蕉| 91亚洲男人天堂| 看片网站欧美日韩| 一区二区三区免费观看| 欧美精品一区二区三区高清aⅴ| 91丨porny丨蝌蚪视频| 久久99精品久久久| 亚洲午夜在线视频| 国产三级欧美三级| 91精品欧美综合在线观看最新| 不卡高清视频专区| 精品一区二区三区欧美| 亚洲成国产人片在线观看| 久久久久久久久久久黄色| 欧美日韩午夜在线| 色综合视频在线观看| 国内成人自拍视频| 男女男精品视频| 亚洲不卡av一区二区三区| 国产精品成人网| 久久麻豆一区二区| 日韩一级成人av| 精品视频999| 91福利国产成人精品照片| 国产**成人网毛片九色| 青椒成人免费视频| 日韩影院精彩在线| 亚洲国产wwwccc36天堂| 尤物av一区二区| 1024成人网| 国产精品久久久久久久久果冻传媒| 日韩女优av电影在线观看| 制服视频三区第一页精品| 精品视频一区 二区 三区| 在线视频你懂得一区二区三区| 成人国产精品免费观看视频| 成人小视频免费观看| 国产精品123区| 国产精品综合av一区二区国产馆| 男人的天堂亚洲一区| 麻豆精品视频在线观看免费| 日韩vs国产vs欧美| 日本色综合中文字幕| 青青草精品视频| 美女视频网站久久| 另类综合日韩欧美亚洲| 蜜臀精品久久久久久蜜臀| 麻豆成人在线观看| 久久精品二区亚洲w码| 久久精品国产一区二区三区免费看| 石原莉奈一区二区三区在线观看| 午夜精品久久一牛影视| 午夜欧美电影在线观看| 日韩国产一二三区| 蜜桃视频免费观看一区| 久久国产精品无码网站| 久草热8精品视频在线观看| 精久久久久久久久久久| 国产成人精品亚洲777人妖| 国产丶欧美丶日本不卡视频| 成人一道本在线| 日本精品视频一区二区| 欧美专区日韩专区| 日韩欧美美女一区二区三区| 久久久久亚洲综合| 亚洲欧洲国产日本综合| 亚洲制服丝袜一区| 日本麻豆一区二区三区视频| 黄网站免费久久| 成人18精品视频| 精品视频一区三区九区| 欧美videossexotv100| 中文字幕不卡一区| 国产精品亚洲专一区二区三区| 国产精品一线二线三线| 99久久精品免费看| 欧美高清视频一二三区| 精品91自产拍在线观看一区| 国产精品免费视频网站| 午夜精品久久久| 国产a精品视频| 在线观看亚洲精品| 久久一二三国产| 亚洲在线免费播放| 国产在线观看一区二区| 91久久人澡人人添人人爽欧美| 日韩精品一区二区三区三区免费 | 亚洲欧美一区二区三区久本道91 | 亚洲成人综合在线| 激情综合色播五月| 色综合久久天天综合网| 精品国产一区久久| 亚洲免费在线电影| 国产综合久久久久影院| 欧美三级视频在线播放| 久久久久久免费网| 日韩成人伦理电影在线观看| av不卡在线观看| 精品精品国产高清a毛片牛牛| 亚洲精品免费在线观看| 国产一二精品视频| 欧美午夜精品电影| 国产精品狼人久久影院观看方式| 奇米在线7777在线精品| 欧美亚洲日本一区| 国产精品福利av| 精品一区二区三区在线观看| 在线观看视频一区| 中文字幕一区日韩精品欧美| 激情偷乱视频一区二区三区| 欧美日韩在线播放三区| 国产精品麻豆久久久| 国产一区美女在线| 日韩一区二区影院| 亚洲一区欧美一区| 99精品久久只有精品| 久久久久久免费网| 国内久久婷婷综合| 日韩免费电影网站| 青草国产精品久久久久久| 欧美三级韩国三级日本三斤| 中文字幕综合网| 97se亚洲国产综合自在线 | 成年人国产精品| 亚洲国产精品精华液2区45| 精品亚洲porn| 精品剧情在线观看| 久久精品国产99国产精品| 欧美一区二区女人| 奇米在线7777在线精品| 日韩视频免费观看高清完整版 | 久久久综合网站| 激情五月激情综合网| 久久伊人中文字幕| 久久国产精品99久久人人澡| 精品久久久久久久人人人人传媒| 日本va欧美va欧美va精品| 欧美一区二区三区四区视频| 蜜臀av一区二区| 精品裸体舞一区二区三区| 国内成+人亚洲+欧美+综合在线| 2021国产精品久久精品| 国产精品一区二区视频| 国产清纯白嫩初高生在线观看91 | 91视频观看视频| 中文字幕佐山爱一区二区免费| 99在线精品观看| 亚洲精品日韩一| 欧美三级在线看| 日本亚洲视频在线| 精品国产一区二区三区久久久蜜月 | 成人精品视频网站| 亚洲色图欧美激情| 欧美日韩国产成人在线免费| 日韩精品电影在线观看| 久久综合色婷婷| 成人性生交大片免费看视频在线| 亚洲欧洲一区二区在线播放| 一本到一区二区三区| 图片区小说区国产精品视频| 日韩免费观看2025年上映的电影| 国产精品69毛片高清亚洲| 亚洲日本在线看| 制服视频三区第一页精品| 国产一区二区三区久久悠悠色av| 国产精品久久久久影院|