mypanel 再分两个panel一个panel加JLable........另一个panel设置成BorderLayout,添加JTextField,在中间,添加JButton在东面就行了
在按钮之前添加一个空的JLabel