File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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?

Java xman
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?
 
Similar Threads
Dojo 1.7 - named functions
Java grid colouring in game
read text file and perform an operation on specific columns
Want to include html in my email message...
Quick String to <char> Array Conversion