wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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???


 
 
subject: What is the best way to set the UpText and DownText in a ToggleButton object?
 
Similar Threads
Dojo 1.7 - named functions
Quick String to <char> Array Conversion
Want to include html in my email message...
read text file and perform an operation on specific columns
Java grid colouring in game