JFrame绝对布局

通过代码:setLayout(null);设置容器布局为绝对布局。

添加控件要注意:一定要设置控件具体的位置。可通过代码setLocation(20, 20)或者setBounds(0, 0, 30, 80)设置

原文地址:https://www.cnblogs.com/wbjgogogo/p/5179591.html