Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Toggle Button Q

Status
Not open for further replies.

jeremytaffy

Technical User
Sep 6, 2001
75
US
I have a program that written in java131 running on AIX5.1 I have a toggle button that I want to be able to change the button label on it, when it toggles. for example, if initially it is labeled "forward" after they click on it, i want it to be labeled "back". I this possible, and if so, how?? thanks in advance.

j
 
You can use the method setText(String) eks.
buttonName.setText("Back");
and of course the button should have added an ActionListerner, to monitor the click
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top