aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes textField.getText()== Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "textField.getText()=="" not working" Watch "textField.getText()=="" not working" New topic
Author

textField.getText()=="" not working

chop ficaro
Ranch Hand

Joined: May 02, 2010
Posts: 30
trying to see if the user has entered text in a text field but
ConductorDiameterIn.getText()==""
always evaluates to false
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Did you forget how to compare Strings in Java ?


[My Blog]
All roads lead to JavaRanch
chop ficaro
Ranch Hand

Joined: May 02, 2010
Posts: 30
o ya there was a method compare or something, let me look that up
chop ficaro
Ranch Hand

Joined: May 02, 2010
Posts: 30
right, method equals, lol thanks for reminding me
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

chop ficaro wrote:

I had requested you to check your private messages in this post
Please note it is not optional.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
Consider Paul's rocket mass heater.
 
subject: textField.getText()=="" not working