jtf3 = new JTextField(3);String date = this.jtf3.getText().trim();当文本框中我没有输入任何东西,date获得的值是什么?
没有输入的话,getText()返回空字符串“”,建议查一下API
好像是null吧。你试试呗