example7_13.java.bak
来自「不错的教程 适合中高级人员的使用」· BAK 代码 · 共 19 行
BAK
19 行
import java.awt.*;
public class Example7_13
{
public static void main(String args[])
{ Frame win=new Frame("窗口");
win.setBounds(100,100,300,300);
win.setVisible(true);
TextArea bCenter=new TextArea("我在中心");
Button bSouth=new Button("我在南边"),bNorth=new Button("我在北边"),
bEast=new Button("我在东边"),bWest=new Button("我在西边") ;
win.add(bNorth,BorderLayout.NORTH);
win.add(bSouth,BorderLayout.SOUTH);
win.add(bEast,BorderLayout.EAST);
win.add(bWest,BorderLayout.WEST);
win.add(bCenter.CENTER);
win.validate();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?