Java - Check if JTextField is empty or not

前端 未结 11 1026
北恋
北恋 2020-11-27 17:44

So I got know this is a popular question and already found the solution. But when I try this it doesn\'t work properly.

My JTextField is empty and the button isn\'t

11条回答
  •  悲&欢浪女
    2020-11-27 18:04

    To Check JTextFiled is empty or not condition:

    if( (billnotf.getText().length()==0)||(billtabtf.getText().length()==0))
    

提交回复
热议问题