This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » GWT
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: What is the best way to set the UpText and DownText in a ToggleButton object?
 
Similar Threads
Java grid colouring in game
read text file and perform an operation on specific columns
Quick String to <char> Array Conversion
Want to include html in my email message...
Dojo 1.7 - named functions