Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

button change text java

public void actionPerformed(ActionEvent e) {
  
if(e.getSource()==button)  {
    button.setText("Button Clicked!");
  
}}
Source by www.java2s.com #
 
PREVIOUS NEXT
Tagged: #button #change #text #java
ADD COMMENT
Topic
Name
2+1 =