File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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!<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
jQuery in Action, 3rd edition