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

📄 demotextareaframe.java

📁 java绘图 java awt 经典绘图的例子,对于初学awt模块的人非常有帮助.
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package swing;import javax.swing.JFrame;import javax.swing.JScrollPane;import javax.swing.JTextArea;/** * * @author zhaolin */public class DemoTextAreaFrame extends JFrame{    public DemoTextAreaFrame(){        JTextArea jta = new JTextArea(10,20);        String content = "Hello\nWorld\n";        jta.setText(content);        jta.setLineWrap(true);        jta.setWrapStyleWord(true);        JScrollPane jsp = new JScrollPane();        jsp.getViewport().add(jta);        this.getContentPane().add(jsp);        this.pack();        this.setVisible(true);            }        public static void main(String[] args) {        new DemoTextAreaFrame();    }}

⌨️ 快捷键说明

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