motiftextareaui.java

来自「JAVA 所有包」· Java 代码 · 共 54 行

JAVA
54
字号
/* * @(#)MotifTextAreaUI.java	1.23 05/11/17 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.java.swing.plaf.motif;import javax.swing.*;import javax.swing.text.*;import javax.swing.plaf.*;import javax.swing.plaf.basic.BasicTextAreaUI;/** * Provides the look and feel for a plain text editor.  In this * implementation the default UI is extended to act as a simple * view factory. * <p> * <strong>Warning:</strong> * Serialized objects of this class will not be compatible with * future Swing releases.  The current serialization support is appropriate * for short term storage or RMI between applications running the same * version of Swing.  A future release of Swing will provide support for * long term persistence. * * @author  Timothy Prinzing * @version 1.23 11/17/05 */public class MotifTextAreaUI extends BasicTextAreaUI {    /**     * Creates a UI for a JTextArea.     *     * @param ta a text area     * @return the UI     */    public static ComponentUI createUI(JComponent ta) {        return new MotifTextAreaUI();    }    /**     * Creates the object to use for a caret.  By default an     * instance of MotifTextUI.MotifCaret is created.  This method     * can be redefined to provide something else that implements     * the Caret interface.     *     * @return the caret object     */    protected Caret createCaret() {	return MotifTextUI.createCaret();    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?