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

📄 flowlayoutdemo.java

📁 精通JBuilder2006 源代码 精通JBuilder2006 源代码
💻 JAVA
字号:
package chapter6.layout;

import java.awt.*;
import javax.swing.*;
public class FlowLayoutDemo extends JFrame {
    public FlowLayoutDemo() {
        Container contentPane = this.getContentPane();
        contentPane.setLayout(new FlowLayout());
        contentPane.add(new JButton("one"));
        contentPane.add(new JButton("two"));
        contentPane.add(new JButton("three"));
        contentPane.add(new JButton("four"));
        this.setTitle("FlowLayoutDemo");
        this.setSize(400, 100);
        this.setLocation(400, 400);
        this.setVisible(true);
    }
    public static void main(String[] args) {
        FlowLayoutDemo test = new FlowLayoutDemo();
    }
}

⌨️ 快捷键说明

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