⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 textarea.scala

📁 JAVA 语言的函数式编程扩展
💻 SCALA
字号:
package scala.swingimport javax.swing._import java.awt.event._import event._/** * @see javax.swing.JTextArea */class TextArea(override val peer: JTextArea) extends TextComponent(peer) with TextComponent.HasColumns with TextComponent.HasRows {  def this(text: String, rows: Int, columns: int) = this(new JTextArea(text, rows, columns))  def this(text: String) = this(new JTextArea(text))  def this(rows: Int, columns: int) = this(new JTextArea(rows, columns))  def this() = this(new JTextArea())    // TODO: we could make contents StringBuilder-like  def append(t: String) { peer.append(t) }      def rows: Int = peer.getRows  def rows_=(n: Int) = peer.setRows(n)  def columns: Int = peer.getColumns  def columns_=(n: Int) = peer.setColumns(n)    def tabSize: Int = peer.getTabSize  def tabSize_=(n: Int) = peer.setTabSize(n)  def lineCount: Int = peer.getLineCount    def lineWrap: Boolean = peer.getLineWrap  def lineWrap_=(w: Boolean) = peer.setLineWrap(w)  def wordWrap: Boolean = peer.getWrapStyleWord  def wordWrap_=(w: Boolean) = peer.setWrapStyleWord(w)  def charWrap: Boolean = !peer.getWrapStyleWord  def charWrap_=(w: Boolean) = peer.setWrapStyleWord(!w)}

⌨️ 快捷键说明

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