File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 14687
    
  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: 9995
    
    7

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!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: textField.getText()=="" not working
 
Similar Threads
list box
Default Body Content
Byte order and file transference.
exporting to CSV
WA #1.....word association