JPanel 示例代码: //面板 JPanel public class JPanelDemo extends JFrame { public static void main(String[] args) { new JPanelDemo()