你这样是对的
if ( aratecent == null)
{
if(aratecent.trim.equal("");
JOptionPane.showMessageDialog(jOptionPane1, "请输入值!",
"错误", JOptionPane.ERROR_MESSAGE);} //我的意思是用这个if语句判断jTextField34中是否有输入
if ( aratecent == null)
{
if(aratecent.trim.equal("");
JOptionPane.showMessageDialog(jOptionPane1, "请输入值!",
"错误", JOptionPane.ERROR_MESSAGE);} //我的意思是用这个if语句判断jTextField34中是否有输入
if ( aratecent == null ||aratecent.trim.equal(""))
{
JOptionPane.showMessageDialog(jOptionPane1, "请输入值!",
"错误", JOptionPane.ERROR_MESSAGE);}
这样子对于一串空格是认为有输入的.
if ( aratecent == null ||aratecent.trim.equal(""))
这样字就认为一串空格是没有输入的.