Swing程序设计(2)

经常使用布局管理器 一、绝对布局web setLayout(null); // 使该窗体取消布局管理器设置 JButton b1 = new JButton("按钮1"); b1.setBounds(10, 30, 80, 30); 二、流布局管理器svg // 设置窗体使用流布局管理器,使组件右对齐,而且设置组件之间的水平间隔10与垂直间隔10 setLayout(new FlowLayou
相关文章
相关标签/搜索