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

📄 example7_12.java.bak

📁 不错的教程 适合中高级人员的使用
💻 BAK
字号:
import java.awt.*;import java.awt.event.*;
 class WindowFlow extends Frame
{  String s;
	WindowFlow(String s) 
   {  
	  super(s);
	  FlowLayout flow=new FlowLayout();
      flow.setAlignment(FlowLayout.LEFT);
      flow.setHgap(20);flow.setVgap(40);
      setLayout(flow);
      setBackground(Color.cyan);
      for(int i=1;i<=12;i++) 
         { add(new Button("i am "+i));
         }
	 setBounds(100,100,300,360);
	 setVisible(true);
	 validate();
   }

}
public class Example7_12 extends Frame
{
	public static void main(String args[])
	{
		WindowFlow win=new WindowFlow("FlowLayout布局");
	}
}

⌨️ 快捷键说明

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