蛇
蛇鹤八步
Unregistered / Unconfirmed
GUEST, unregistred user!
我的代码如下:
void jdbNavToolBar1_mousePressed(MouseEvent e) {
String s10=jdbTextField10.getText();
if(s10=="")
JOptionPane.showMessageDialog(null,"单据号不能为空");
JOptionPane.showMessageDialog(null,"success");
}
为什么任何时候都不进行IF判断??都直接执行
JOptionPane.showMessageDialog(null,"success");
郁闷啊!!
void jdbNavToolBar1_mousePressed(MouseEvent e) {
String s10=jdbTextField10.getText();
if(s10=="")
JOptionPane.showMessageDialog(null,"单据号不能为空");
JOptionPane.showMessageDialog(null,"success");
}
为什么任何时候都不进行IF判断??都直接执行
JOptionPane.showMessageDialog(null,"success");
郁闷啊!!