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

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

?? basictextui.java

?? java1.6眾多例子參考
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
        if (editor.getSelectionColor() instanceof UIResource) {            editor.setSelectionColor(null);        }        if (editor.getDisabledTextColor() instanceof UIResource) {            editor.setDisabledTextColor(null);        }        if (editor.getSelectedTextColor() instanceof UIResource) {            editor.setSelectedTextColor(null);        }        if (editor.getBorder() instanceof UIResource) {            editor.setBorder(null);        }        if (editor.getMargin() instanceof UIResource) {            editor.setMargin(null);        }        if (editor.getCaret() instanceof UIResource) {            editor.setCaret(null);        }        if (editor.getHighlighter() instanceof UIResource) {            editor.setHighlighter(null);        }	if (editor.getTransferHandler() instanceof UIResource) {	    editor.setTransferHandler(null);	}        if (editor.getCursor() instanceof UIResource) {            editor.setCursor(null);        }    }    /**     * Installs listeners for the UI.     */    protected void installListeners() {    }    /**     * Uninstalls listeners for the UI.     */    protected void uninstallListeners() {    }    protected void installKeyboardActions() {	// backward compatibility support... keymaps for the UI	// are now installed in the more friendly input map.        editor.setKeymap(createKeymap());         InputMap km = getInputMap();	if (km != null) {	    SwingUtilities.replaceUIInputMap(editor, JComponent.WHEN_FOCUSED,					     km);	}		ActionMap map = getActionMap();	if (map != null) {	    SwingUtilities.replaceUIActionMap(editor, map);	}	updateFocusAcceleratorBinding(false);    }    /**     * Get the InputMap to use for the UI.       */    InputMap getInputMap() {	InputMap map = new InputMapUIResource();	InputMap shared = 	    (InputMap)DefaultLookup.get(editor, this,            getPropertyPrefix() + ".focusInputMap");	if (shared != null) {	    map.setParent(shared);	}	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));	    }            LookAndFeel.installProperty(editor,                                        "focusTraversalKeysForward",					 forwardTraversalKeys);            LookAndFeel.installProperty(editor,                                        "focusTraversalKeysBackward",					 backwardTraversalKeys);	}    }    /**     * As needed updates cursor for the target editor.     */    private void updateCursor() {        if ((! editor.isCursorSet())               || editor.getCursor() instanceof UIResource) {            Cursor cursor = (editor.isEditable()) ? textCursor : null;            editor.setCursor(cursor);        }    }    /**     * 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) {        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();        if (alloc != null) {            rootView.paint(g, alloc);        }        	// paint the caret	if (caret != null) {	    caret.paint(g);	}        if (dropCaret != null) {            dropCaret.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>     *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91久久国产最好的精华液| 亚洲国产精品一区二区久久 | 亚洲人成精品久久久久| 国产成人精品影院| 国产精品久久久久国产精品日日| 丁香亚洲综合激情啪啪综合| 国产精品不卡一区二区三区| www.欧美日韩| 一级日本不卡的影视| 欧美伦理电影网| 日本欧美一区二区三区乱码| 久久亚洲私人国产精品va媚药| 国产成人精品1024| 樱桃视频在线观看一区| 欧美日韩一区精品| 久久丁香综合五月国产三级网站 | 成人aaaa免费全部观看| 亚洲女与黑人做爰| 日韩丝袜情趣美女图片| 国产乱子伦一区二区三区国色天香| 国产免费久久精品| 欧美在线观看18| 麻豆国产精品一区二区三区| 国产日本欧美一区二区| 午夜影视日本亚洲欧洲精品| 91麻豆精品一区二区三区| 欧美性xxxxxx少妇| 日本麻豆一区二区三区视频| 亚洲曰韩产成在线| 成人手机电影网| 精品国内片67194| 免费一级片91| 日本道免费精品一区二区三区| 成人精品gif动图一区| 色94色欧美sute亚洲线路二| 亚洲日穴在线视频| 美女在线视频一区| 亚洲视频一二三| 欧美mv和日韩mv的网站| 成人夜色视频网站在线观看| 午夜精品福利一区二区蜜股av| 国产午夜精品理论片a级大结局| 欧美性高清videossexo| 风间由美一区二区三区在线观看| 亚洲综合一二区| 国产亚洲精品精华液| 91精品午夜视频| 成人国产精品免费观看动漫| 美女视频网站黄色亚洲| 国产成人av网站| 午夜日韩在线观看| 亚洲蜜臀av乱码久久精品蜜桃| 久久久久久久久岛国免费| 欧美妇女性影城| 在线观看免费一区| 91在线观看视频| 成人动漫一区二区三区| 国产麻豆日韩欧美久久| 九九**精品视频免费播放| 天堂一区二区在线| 亚洲国产精品久久一线不卡| 亚洲精品日韩综合观看成人91| 国产欧美日韩视频一区二区| 日韩美女在线视频| 69精品人人人人| 欧美日韩日日摸| 欧美视频一区二区三区在线观看| 色综合激情五月| 97精品国产97久久久久久久久久久久| 国产精品99久| 国产麻豆成人精品| 国产精品888| 国产一区二区三区蝌蚪| 国产伦精品一区二区三区在线观看| 麻豆成人久久精品二区三区小说| 亚洲成人动漫在线观看| 性做久久久久久免费观看欧美| 亚洲福利视频一区二区| 亚洲一区二区三区在线播放| 亚洲图片一区二区| 婷婷久久综合九色综合绿巨人 | 日韩精品一区二区三区中文不卡 | 成人免费视频在线观看| 国产精品污www在线观看| 亚洲欧洲另类国产综合| 亚洲欧美区自拍先锋| 一区二区三区在线免费视频| 亚洲欧美日韩电影| 亚洲福利国产精品| 免费xxxx性欧美18vr| 国产一区二区免费看| 国产成人午夜精品5599| 不卡电影免费在线播放一区| 91浏览器打开| 欧美日韩在线播| 日韩一区二区三区免费看| 精品国产一区二区三区av性色| 精品动漫一区二区三区在线观看| 国产三级精品视频| 亚洲免费av观看| 午夜免费久久看| 国产在线视频不卡二| 成人国产精品免费观看| 欧美日韩中文字幕一区二区| 欧美成人一级视频| 国产精品久线观看视频| 亚洲一区二区三区中文字幕| 久久精品国产免费| 91亚洲大成网污www| 在线播放视频一区| 久久九九国产精品| 一区二区三区在线不卡| 毛片av一区二区| 99精品久久99久久久久| 欧美图片一区二区三区| 精品国产乱码久久久久久图片| 国产精品国产三级国产aⅴ原创 | 看电视剧不卡顿的网站| 久久综合九色综合久久久精品综合| 国产亚洲一二三区| 亚洲五码中文字幕| 国产成人午夜99999| 欧美三级在线看| 国产日韩欧美电影| 日本成人在线网站| 91一区二区三区在线观看| 欧美成人精品高清在线播放| 亚洲欧美日韩综合aⅴ视频| 蜜臀av性久久久久av蜜臀妖精 | 欧美性猛交xxxx乱大交退制版 | 亚洲综合色成人| 国产一区二区视频在线| 欧美三级资源在线| 中文字幕欧美日韩一区| 美国毛片一区二区| 欧美三级在线视频| 日韩理论在线观看| 国产成人av一区二区三区在线观看| 欧美精品欧美精品系列| 亚洲视频在线观看一区| 国产成人免费av在线| 日韩一级黄色大片| 亚洲在线观看免费| 91麻豆文化传媒在线观看| 国产肉丝袜一区二区| 九九九精品视频| 日韩一区二区精品葵司在线| 亚洲成av人**亚洲成av**| 色婷婷久久久久swag精品| 欧美激情一区二区三区不卡| 精品一区二区在线观看| 日韩一区二区三区高清免费看看| 亚洲午夜精品在线| 国产精品国产a| 国产高清精品在线| 亚洲精品一区二区三区福利| 日韩高清不卡一区二区| 日本道色综合久久| 亚洲人成伊人成综合网小说| 国产mv日韩mv欧美| 国产精品亲子伦对白| 国产精品一区二区在线观看不卡| 欧美电影精品一区二区| 蜜桃精品在线观看| 欧美一级片在线看| 免费av成人在线| 欧美mv日韩mv国产网站app| 蜜臀av性久久久久蜜臀aⅴ流畅| 日韩一级在线观看| 久久成人羞羞网站| 久久色在线观看| 国产老妇另类xxxxx| 国产精品网站在线观看| 99久久er热在这里只有精品66| 成人免费视频在线观看| 在线一区二区三区四区| 亚洲大片一区二区三区| 欧美日产国产精品| 日本不卡视频一二三区| 日韩免费视频一区| 韩国av一区二区三区| 久久久久成人黄色影片| 国产91精品一区二区| 国产精品不卡视频| 欧美在线观看一二区| 日韩精品一级二级| 亚洲精品一区二区三区福利| 丁香桃色午夜亚洲一区二区三区| 国产精品69毛片高清亚洲| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 91麻豆精品91久久久久同性| 久久er99精品| 欧美激情一区二区三区不卡| 在线视频一区二区三区| 日本亚洲最大的色成网站www| 久久这里只有精品视频网| 99精品偷自拍| 青青草国产精品亚洲专区无| 久久久久久久久岛国免费| 91婷婷韩国欧美一区二区|