标签:tla manager 按钮组 stat string 组件 标签 pac order
package test;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
public class Shiyi {
public static void main(String[]args) {
JFrame frame=new JFrame("SHIYI");
frame.setLayout(new BorderLayout(4,4));
frame.add(new JButton("A(1)"),BorderLayout.EAST);
frame.add(new JButton("B(2)"),BorderLayout.WEST);
frame.add(new JButton("C(3)"),BorderLayout.SOUTH);
frame.add(new JButton("D(4)"),BorderLayout.NORTH);
frame.add(new JButton("E(5)"),BorderLayout.CENTER);
frame.pack();
frame.setVisible(true);
}
}
Font类
imagelcon类
标签:tla manager 按钮组 stat string 组件 标签 pac order
原文地址:https://www.cnblogs.com/yuanqizhizhi/p/11822268.html