可以在向container里加TextField时制定大小啊!
TextField.setPrefersize(new Dimenson(width,hight));
或根据你要取得的字符数来定,在new的时候做new JTextField(count);
都可以!