Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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: 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: 10170
    
    8

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
Byte order and file transference.
WA #1.....word association
exporting to CSV
Default Body Content
list box