This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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!<br />Java/XML Web Development<br />Check it out!<br /><a href="" target="_blank" rel="nofollow"></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
I agree. Here's the link:
subject: I am Stuck
It's not a secret anymore!