在JFrame的构造函数中添加setLayout(newFlowLayout())即可。或在设置了setLayout(null)后,添加控件对象名..setBounds(x,y,width,height);;就可以显示出来了至于原因,未知