aspose file tools*
The moose likes GWT and the fly likes What is the best way to set the UpText and DownText in a ToggleButton object? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "What is the best way to set the UpText and DownText in a ToggleButton object?" Watch "What is the best way to set the UpText and DownText in a ToggleButton object?" New topic
Author

What is the best way to set the UpText and DownText in a ToggleButton object?

Jack Silver
Greenhorn

Joined: Apr 23, 2012
Posts: 12
Hello All,

It seems nuts to me that the only way to set the text for both up and down on a ToggleButton object is to use the constructor e.g ToggleButton tglbtn1 =new ToggleButton("My UpText","My DownText");
Shouldn't there be a setText(s1,s2) like the constructor? If so How do I set both these values to the same text???


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the best way to set the UpText and DownText in a ToggleButton object?