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

📄 gridlayoutwindow.java

📁 java中awt应用的例子
💻 JAVA
字号:
import java.awt.*;public class GridLayoutWindow extends Frame {    public GridLayoutWindow() {        setLayout(new GridLayout(0,2));           add(new Button("Button 1"));        add(new Button("2"));        add(new Button("Button 3"));        add(new Button("Long-Named Button 4"));        add(new Button("Button 5"));        add(new Button("6"));    }    public static void main(String args[]) {        GridLayoutWindow window = new GridLayoutWindow();        window.setTitle("GridWindow Application");        window.pack();        window.show();    }}

⌨️ 快捷键说明

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