Advertisement
stevennathaniel

Interface1DocumentController

Apr 20th, 2016
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.86 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package latihan2;
  7.  
  8. import java.net.URL;
  9.  
  10. import java.util.ResourceBundle;
  11.  
  12. import javafx.event.ActionEvent;
  13.  
  14. import javafx.fxml.FXML;
  15.  
  16. import javafx.fxml.Initializable;
  17.  
  18. import javafx.scene.control.Label;
  19.  
  20. /**
  21.  *
  22.  * @author stevennathaniel
  23.  */
  24. public class Interface1DocumentController implements Initializable{
  25.    
  26.     @FXML
  27.    
  28.     private Label label1;
  29.    
  30.     @FXML
  31.    
  32.     private void penangananAksiTombol (ActionEvent event){
  33.        
  34.         System.out.println("Anda Mengklik diriku");
  35.        
  36.         label1.setText("Selamat Pagi Dunia");
  37.     }
  38.    
  39.     @Override
  40.    
  41.     public void initialize(URL url, ResourceBundle rb){
  42.        
  43.     }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement