panel.addSouth(), panel.addNorth(), panel.addEast(), panel.addWest() 必须出现在panel.add之前。 panel.add其实就是add to Center.