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

📄 fllayout.java

📁 东西比较杂
💻 JAVA
字号:
/**
 * 
 */
package com.tiankong;

/**
 * @author Administrator
 *
 */
import java.awt.*;
import javax.swing.*;
public class FlLayout extends JFrame{
	JButton button1;
	JButton button2;
	JButton button3;
	JButton button4;
	public FlLayout(){
		 button1 = new JButton("Ok");
         button2 = new JButton("Open");
         button3 = new JButton("Close");
         button4=new JButton("haha");
         Container c=getContentPane();
         this.setLayout(new FlowLayout(FlowLayout.LEFT));
         button1.setPreferredSize(new Dimension(100 , 50));
         button2.setPreferredSize(new Dimension(100 , 50));
         button3.setPreferredSize(new Dimension(100 , 50));
         button4.setPreferredSize(new Dimension(100 , 50));
         c.add(button1);
         c.add(button2);
         c.add(button3);
         c.add(button4);
         this.setSize(400,300);
         this.setLocation(200,100);
         this.setVisible(true);
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stu
		new FlLayout();
	}

}

⌨️ 快捷键说明

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