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

📄 yongjframe.java

📁 200多个自己编的java程序,大家可以学一下.
💻 JAVA
字号:
/* * yongJFrame.java * * Created on 2004年9月27日, 下午9:38 *//** * * @author  litertiger */import java.awt.*;import javax.swing.*;import java.awt.event.*;class jframe extends JFrame{    JButton button;    JTextArea text;        /** Creates a new instance of yongJFrame */    public jframe() {        setSize(400,400);        setVisible(true);        Container con=getContentPane();        con.setLayout(new FlowLayout());        button=new JButton("ok");        text=new JTextArea(10,20);                con.add(button);        con.add(text);        pack();        addWindowListener(new WindowAdapter()        {            public void windowClosing(WindowEvent e)            {                System.exit(0);            }        });                }    }    public class yongJFrame{    public static void main(String args[])    {    jframe f=new jframe();    }    }

⌨️ 快捷键说明

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