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

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

?? jtextarea.java

?? gcc的組建
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* JTextArea.java --    Copyright (C) 2004, 2005  Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package javax.swing;import java.awt.Dimension;import java.awt.FontMetrics;import java.awt.Rectangle;import javax.accessibility.AccessibleContext;import javax.accessibility.AccessibleStateSet;import javax.swing.text.BadLocationException;import javax.swing.text.Document;import javax.swing.text.Element;import javax.swing.text.JTextComponent;import javax.swing.text.PlainDocument;import javax.swing.text.View;/** * The <code>JTextArea</code> component provides a multi-line area for displaying * and editing plain text.  The component is designed to act as a lightweight * replacement for the heavyweight <code>java.awt.TextArea</code> component, * which provides similar functionality using native widgets. * <p> * * This component has additional functionality to the AWT class.  It follows * the same design pattern as seen in other text components, such as * <code>JTextField</code>, <code>JTextPane</code> and <code>JEditorPane</code>, * and embodied in <code>JTextComponent</code>.  These classes separate the text * (the model) from its appearance within the onscreen component (the view).  The * text is held within a <code>javax.swing.text.Document</code> object, which can * also maintain relevant style information where necessary.  As a result, it is the * document that should be monitored for textual changes, via * <code>DocumentEvent</code>s delivered to registered * <code>DocumentListener</code>s, rather than this component. * <p> * * Unlike <code>java.awt.TextArea</code>, <code>JTextArea</code> does not * handle scrolling.  Instead, this functionality is delegated to a * <code>JScrollPane</code>, which can contain the text area and handle * scrolling when required.  Likewise, the word wrapping functionality * of the AWT component is converted to a property of this component * and the <code>rows</code> and <code>columns</code> properties * are used in calculating the preferred size of the scroll pane's * view port. * * @author Michael Koch  (konqueror@gmx.de) * @author Andrew John Hughes  (gnu_andrew@member.fsf.org) * @see java.awt.TextArea * @see javax.swing.text.JTextComponent * @see javax.swing.JTextField * @see javax.swing.JTextPane * @see javax.swing.JEditorPane * @see javax.swing.text.Document * @see javax.swing.event.DocumentEvent * @see javax.swing.event.DocumentListener */public class JTextArea extends JTextComponent{  /**   * Provides accessibility support for <code>JTextArea</code>.   *   * @author Roman Kennke (kennke@aicas.com)   */  protected class AccessibleJTextArea extends AccessibleJTextComponent  {    /**     * Creates a new <code>AccessibleJTextArea</code> object.     */    protected AccessibleJTextArea()    {      super();    }    /**     * Returns the accessible state of this <code>AccessibleJTextArea</code>.     *     * @return  the accessible state of this <code>AccessibleJTextArea</code>     */    public AccessibleStateSet getAccessibleStateSet()    {      AccessibleStateSet state = super.getAccessibleStateSet();      // TODO: Figure out what state must be added here to the super's state.      return state;    }  }  /**   * Compatible with Sun's JDK   */  private static final long serialVersionUID = -6141680179310439825L;    /**   * The number of rows used by the component.   */  private int rows;  /**   * The number of columns used by the component.   */  private int columns;  /**   * Whether line wrapping is enabled or not.   */  private boolean lineWrap;  /**   * The number of characters equal to a tab within the text.   */  private int tabSize = 8;  private boolean wrapStyleWord;  /**   * Creates a new <code>JTextArea</code> object.   */  public JTextArea()  {    this(null, null, 0, 0);  }  /**   * Creates a new <code>JTextArea</code> object.   *   * @param text the initial text   */  public JTextArea(String text)  {    this(null, text, 0, 0);  }  /**   * Creates a new <code>JTextArea</code> object.   *   * @param rows the number of rows   * @param columns the number of cols   *   * @exception IllegalArgumentException if rows or columns are negative   */  public JTextArea(int rows, int columns)  {    this(null, null, rows, columns);  }  /**   * Creates a new <code>JTextArea</code> object.   *   * @param text the initial text   * @param rows the number of rows   * @param columns the number of cols   *   * @exception IllegalArgumentException if rows or columns are negative   */  public JTextArea(String text, int rows, int columns)  {    this(null, text, rows, columns);  }  /**   * Creates a new <code>JTextArea</code> object.   *   * @param doc the document model to use   */  public JTextArea(Document doc)  {    this(doc, null, 0, 0);  }  /**   * Creates a new <code>JTextArea</code> object.   *   * @param doc the document model to use   * @param text the initial text   * @param rows the number of rows   * @param columns the number of cols   *   * @exception IllegalArgumentException if rows or columns are negative   */  public JTextArea(Document doc, String text, int rows, int columns)  {    setDocument(doc == null ? createDefaultModel() : doc);    setText(text);    setRows(rows);    setColumns(columns);  }  /**   * Appends the supplied text to the current contents   * of the document model.   *   * @param toAppend the text to append   */  public void append(String toAppend)  {      try	  {	      getDocument().insertString(getText().length(), toAppend, null);	  }      catch (BadLocationException exception)	  {	      /* This shouldn't happen in theory -- but, if it does...  */	      throw new RuntimeException("Unexpected exception occurred.", exception);	  }      if (toAppend != null && toAppend.length() > 0)        revalidate();  }  /**   * Creates the default document model.   *   * @return a new default model   */  protected Document createDefaultModel()  {    return new PlainDocument();  }  /**   * Returns true if the width of this component should be forced   * to match the width of a surrounding view port.  When line wrapping   * is turned on, this method returns true.   *   * @return true if lines are wrapped.   */  public boolean getScrollableTracksViewportWidth()  {    return lineWrap ? true : super.getScrollableTracksViewportWidth();  }  /**   * Returns the increment that is needed to expose exactly one new line   * of text. This is implemented here to return the values of   * {@link #getRowHeight} and {@link #getColumnWidth}, depending on   * the value of the argument <code>direction</code>.   *   * @param visibleRect the view area that is visible in the viewport   * @param orientation either {@link SwingConstants#VERTICAL} or   *     {@link SwingConstants#HORIZONTAL}   * @param direction less than zero for up/left scrolling, greater   *     than zero for down/right scrolling   *   * @return the increment that is needed to expose exactly one new row   *     or column of text   *   * @throws IllegalArgumentException if <code>orientation</code> is invalid   */  public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation,                                        int direction)  {    if (orientation == SwingConstants.VERTICAL)      return getRowHeight();    else if (orientation == SwingConstants.HORIZONTAL)      return getColumnWidth();    else      throw new IllegalArgumentException("orientation must be either "                                     + "javax.swing.SwingConstants.VERTICAL "                                     + "or "                                     + "javax.swing.SwingConstants.HORIZONTAL"                                     );  }  /**   * Returns the preferred size of that text component in the case   * it is embedded within a JScrollPane. This uses the column and

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
韩国成人在线视频| 亚洲精品国产a| 国产不卡视频在线观看| 国产午夜亚洲精品羞羞网站| 国产成人av在线影院| 国产日本欧洲亚洲| 91原创在线视频| 亚洲综合视频在线观看| 911精品产国品一二三产区| 日韩高清欧美激情| 亚洲精品在线三区| 成人av午夜电影| 亚洲色图一区二区三区| 欧美精品v国产精品v日韩精品 | 国产91精品在线观看| 国产精品青草久久| 欧美色综合影院| 欧美亚洲自拍偷拍| 日本亚洲欧美天堂免费| 中文字幕第一区二区| 在线观看av一区二区| 蜜臀va亚洲va欧美va天堂| 国产欧美日产一区| 精品1区2区3区| 国产麻豆一精品一av一免费| 自拍偷拍国产精品| 日韩精品一区二区三区视频在线观看 | 国产一区二区剧情av在线| 亚洲欧美一区二区视频| 制服丝袜在线91| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 99久久精品99国产精品 | 欧美电视剧在线看免费| eeuss鲁一区二区三区| 日韩精品91亚洲二区在线观看| 久久先锋资源网| 欧美日韩中文一区| 成人亚洲精品久久久久软件| 日韩黄色一级片| 国产精品国产三级国产aⅴ无密码| 欧美精品v国产精品v日韩精品| 丰满白嫩尤物一区二区| 日韩国产欧美三级| 亚洲精选视频免费看| 欧美videofree性高清杂交| 色中色一区二区| 国产精选一区二区三区| 日韩高清中文字幕一区| 一区二区三区中文免费| 中文字幕va一区二区三区| 3d动漫精品啪啪一区二区竹菊 | 精品国产髙清在线看国产毛片| 91在线一区二区三区| 九九精品一区二区| 午夜不卡av在线| 国产精品国产自产拍高清av王其 | 欧美日韩黄色影视| 91啪亚洲精品| 成人小视频在线| 国产麻豆9l精品三级站| 久久福利资源站| 蜜臀av在线播放一区二区三区| 一区二区三区国产精华| 国产精品久久久久久户外露出 | 日韩一级二级三级精品视频| 欧洲人成人精品| 91亚洲精品一区二区乱码| 成人听书哪个软件好| 国内成人精品2018免费看| 美女网站一区二区| 日本aⅴ精品一区二区三区 | 亚洲精品一区二区精华| 欧美成人女星排行榜| 3atv一区二区三区| 91精品中文字幕一区二区三区| 欧洲一区二区三区免费视频| 91久久精品国产91性色tv | 午夜天堂影视香蕉久久| 亚洲高清视频的网址| 亚洲综合999| 亚洲一区二区三区四区五区黄| 亚洲免费观看高清完整版在线观看熊| 综合久久久久久久| 亚洲美女免费视频| 亚洲一区视频在线| 亚洲va天堂va国产va久| 丝袜a∨在线一区二区三区不卡| 丝袜美腿亚洲色图| 精品在线免费观看| 国产精品一区二区久久不卡 | 91在线一区二区三区| 色香蕉久久蜜桃| 欧美日韩国产美女| 日韩欧美资源站| 久久免费电影网| 国产精品麻豆一区二区| 一区二区三区中文字幕电影| 午夜精品久久久久久久蜜桃app| 免费在线观看不卡| 国产精品 日产精品 欧美精品| 成人禁用看黄a在线| 色综合夜色一区| 91麻豆精品国产无毒不卡在线观看| 日韩视频免费观看高清完整版| 久久蜜桃一区二区| 亚洲欧美日韩国产一区二区三区 | 国产三级精品三级在线专区| 中文字幕亚洲区| 亚洲一线二线三线视频| 另类综合日韩欧美亚洲| caoporen国产精品视频| 欧美日韩亚洲高清一区二区| 日韩免费成人网| 国产精品理论在线观看| 亚洲综合在线免费观看| 精品亚洲成a人| 91网站在线播放| 欧美电影免费观看高清完整版在线| 国产欧美精品一区| 亚洲国产一区二区三区青草影视| 久久se精品一区精品二区| 92精品国产成人观看免费 | 国产裸体歌舞团一区二区| 色婷婷国产精品| 久久久亚洲综合| 香蕉av福利精品导航| 成人av网站免费观看| 日韩欧美亚洲国产精品字幕久久久| 国产精品国产三级国产三级人妇 | 欧美日本在线看| 国产精品无码永久免费888| 天天免费综合色| 99r精品视频| 欧美精品一区二区久久婷婷| 一区二区三区欧美久久| 国产一区视频在线看| 欧美影视一区二区三区| 国产精品国产三级国产专播品爱网| 美女久久久精品| 91福利在线观看| 国产日韩亚洲欧美综合| 精品一区二区精品| 3751色影院一区二区三区| 一区二区三区在线观看网站| 国产999精品久久久久久| 日韩欧美国产综合| 亚洲成人高清在线| 91久久精品一区二区三| 亚洲天堂免费看| 丁香亚洲综合激情啪啪综合| 日韩手机在线导航| 亚洲福利视频导航| 欧美网站一区二区| 一区二区三区在线影院| 91网站在线观看视频| ㊣最新国产の精品bt伙计久久| 国产成人精品一区二区三区四区| 日韩一级大片在线| 日本少妇一区二区| 欧美精品aⅴ在线视频| 亚洲精品老司机| 97精品电影院| 亚洲精品国产成人久久av盗摄| 成人黄色免费短视频| 欧美韩国日本不卡| 不卡在线观看av| 国产精品色一区二区三区| 国产精品99久久久| 亚洲国产成人自拍| 不卡视频免费播放| 亚洲色欲色欲www| 在线观看av不卡| 午夜在线成人av| 欧美一区午夜精品| 久久99久久久久久久久久久| 日韩精品综合一本久道在线视频| 另类小说欧美激情| 亚洲精品在线观| 国产99久久久国产精品潘金网站| 国产欧美精品区一区二区三区| 成人成人成人在线视频| 亚洲欧美偷拍卡通变态| 在线视频国内一区二区| 亚洲成人午夜电影| 91精品国产福利| 国内精品伊人久久久久av影院 | 欧美精品一区二区三区蜜桃| 国产成人综合视频| 国产精品电影院| 精品视频一区三区九区| 日本不卡一区二区三区| 337p日本欧洲亚洲大胆色噜噜| 国产成人综合自拍| 亚洲免费观看在线观看| 91精品国产一区二区三区| 国产剧情一区二区三区| 亚洲啪啪综合av一区二区三区| 欧美精品在线一区二区三区| 国产一区二区三区视频在线播放| 国产精品网友自拍|