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

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

?? jtextarea.java

?? linux下編程用 編譯軟件
?? 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一区二区三区免费野_久草精品视频
91视频精品在这里| 一本久久综合亚洲鲁鲁五月天| 亚洲另类在线制服丝袜| 久久精品欧美日韩| 久久久不卡网国产精品二区| 日韩一区二区三区高清免费看看| 在线视频你懂得一区二区三区| 91在线视频观看| 91福利国产精品| 日本国产一区二区| 欧美日韩成人在线一区| 日韩视频一区二区在线观看| 欧美成人精品福利| 日本一区二区视频在线| 中文字幕在线免费不卡| 亚洲欧美激情在线| 一区二区三区在线影院| 欧美日韩视频在线观看一区二区三区 | 日韩精品乱码av一区二区| 亚洲私人影院在线观看| 亚洲精品一卡二卡| 午夜伦欧美伦电影理论片| 亚洲va欧美va人人爽| 麻豆一区二区三| 裸体歌舞表演一区二区| 成人精品视频.| 欧美日韩第一区日日骚| 久久五月婷婷丁香社区| 亚洲欧美日韩国产综合| 日精品一区二区三区| 国产精品一级黄| 在线观看网站黄不卡| 日韩丝袜情趣美女图片| 国产精品久久久久久久午夜片| 一区二区三区精品视频| 经典三级在线一区| 99视频一区二区三区| 91精品国产欧美一区二区成人| 久久久99免费| 亚洲国产精品久久不卡毛片 | 国产日韩高清在线| 亚洲精品视频在线观看网站| 免费xxxx性欧美18vr| 成人app在线观看| 欧美情侣在线播放| 国产精品二三区| 精品一区二区久久久| 欧美性生活久久| 国产精品久久看| 青青国产91久久久久久| 色综合久久久久网| 国产欧美日韩视频一区二区| 青青草伊人久久| 91官网在线观看| 国产精品第一页第二页第三页 | 日韩精品中文字幕一区二区三区 | 欧美一区二区三区白人| 国产精品成人在线观看| 国产一区二区三区av电影| 91精品免费观看| 亚洲曰韩产成在线| 91视频xxxx| 中文字幕一区二| 成人h动漫精品一区二| 亚洲精品在线网站| 精品综合久久久久久8888| 欧美日韩大陆一区二区| 亚洲成av人片一区二区梦乃| 色婷婷综合中文久久一本| 欧美激情资源网| 国产精品自拍网站| 久久精品在这里| 国产福利一区二区| 久久久精品国产免大香伊| 国产在线播放一区| 亚洲精品一区二区三区四区高清| 免费观看在线综合色| 69精品人人人人| 免费的成人av| 精品免费国产二区三区| 日韩电影一区二区三区| 欧美精品乱人伦久久久久久| 亚洲一区二区视频在线观看| 欧美日韩在线播| 日韩黄色免费电影| 日韩欧美国产一区二区三区| 另类人妖一区二区av| 日韩欧美亚洲国产另类 | 日韩精品中文字幕一区| 首页综合国产亚洲丝袜| 67194成人在线观看| 美女视频黄 久久| 国产亚洲视频系列| 91尤物视频在线观看| 有码一区二区三区| 欧美丰满美乳xxx高潮www| 麻豆中文一区二区| 国产精品色哟哟网站| 在线一区二区三区四区五区| 亚洲一区二区三区精品在线| 欧美日韩一区国产| 精品一区二区三区免费播放| 国产欧美精品区一区二区三区 | 日韩精品视频网| 国产亚洲欧美色| 91久久国产综合久久| 丝袜美腿一区二区三区| 欧美国产激情二区三区 | 蜜臀久久99精品久久久画质超高清| 日韩三级电影网址| www.日韩精品| 热久久久久久久| 中文字幕av资源一区| 欧美精品第1页| 国产高清在线精品| 亚洲成人自拍网| 国产精品久久久久婷婷二区次| 欧美日韩国产三级| 成人的网站免费观看| 免费在线成人网| 亚洲精品第1页| 中文字幕av不卡| 日韩视频免费观看高清完整版在线观看 | 久久婷婷一区二区三区| 日本高清不卡aⅴ免费网站| 久久99久久久欧美国产| 夜夜嗨av一区二区三区网页| 国产女人18毛片水真多成人如厕| 欧美少妇xxx| 91亚洲国产成人精品一区二三 | 欧美视频你懂的| av在线播放不卡| 国产精品91一区二区| 天天操天天色综合| 一区二区三区中文字幕| 亚洲视频在线一区观看| 欧美国产精品久久| 久久久国产午夜精品| 精品久久久久久久一区二区蜜臀| 在线观看国产精品网站| 99精品热视频| 丁香激情综合五月| 国产传媒日韩欧美成人| 久久精品国产99国产精品| 青青草原综合久久大伊人精品 | 欧美v国产在线一区二区三区| 欧美老肥妇做.爰bbww| 欧美在线观看一区二区| 91麻豆精东视频| 99久久精品国产一区| 成人精品免费视频| 懂色一区二区三区免费观看| 国产高清精品在线| 国产成人精品aa毛片| 国产成人精品亚洲日本在线桃色 | 色婷婷国产精品久久包臀| av午夜精品一区二区三区| 高清视频一区二区| 99久久婷婷国产综合精品电影| 成人av小说网| 在线日韩av片| 欧美精品丝袜久久久中文字幕| 欧美日韩国产美女| 欧美一区二区三区的| 久久久久免费观看| 国产精品久久毛片a| 一区二区三区成人| 日韩电影在线免费看| 久久91精品国产91久久小草| 国内成+人亚洲+欧美+综合在线| 国产乱码精品一区二区三区av | 日本一区二区久久| 国产精品国产a| 天堂久久久久va久久久久| 国产一区二三区| 99精品一区二区三区| 这里只有精品电影| 日本一区二区免费在线观看视频 | 欧美亚洲国产一卡| 日韩精品一区二区在线| 中文在线一区二区| 亚洲无线码一区二区三区| 蜜臀久久久99精品久久久久久| 成人综合在线视频| 欧美日韩精品一区二区天天拍小说 | 中文字幕一区二区三区在线观看 | 天天操天天干天天综合网| 国产一区啦啦啦在线观看| 99国产精品99久久久久久| 欧美午夜电影在线播放| 欧美精品一区二区三区蜜桃| 日韩理论电影院| 久草中文综合在线| 日本道免费精品一区二区三区| 日韩一区二区三区在线视频| 国产精品久久久久精k8| 美女网站在线免费欧美精品| aaa国产一区| 亚洲精品一区二区三区香蕉| 亚洲国产精品久久不卡毛片|