jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes I am Stuck Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I am Stuck" Watch "I am Stuck" New topic

I am Stuck

Ryan Perlman

Joined: Oct 31, 2001
Posts: 23
I think I can write the method but how to pass the methods boolean value back to the textField that requires String.
I know with setText(Integer.toString(55)); we can pass an int to a string but where should I look to pass a boolean
Frustrated Ryan :confused
Kris Nelson
Ranch Hand

Joined: Nov 04, 2001
Posts: 35
The Boolean Wrapper class (Boolean with a capital 'B') has a toSTring() method that returns "true" or "false" as a String and can be created using as boolean value in its constructor.

Java/XML Web Development
Check it out!

WebNelly.com<br />Java/XML Web Development<br />Check it out!<br /><a href="http://www.webnelly.com" target="_blank" rel="nofollow">http://www.webnelly.com</a>
Ryan Perlman

Joined: Oct 31, 2001
Posts: 23
I found the Boolean Wrapper Class in the api early, could I throw a couple of more quarters at the jukebox for just a little more hint? Please
Have you checked out Aspose?
subject: I am Stuck
It's not a secret anymore!