Created
April 23, 2013 07:25
-
-
Save npatta01/5441497 to your computer and use it in GitHub Desktop.
SampleController: referencing gui components in te controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...... | |
public class SampleController implements Initializable { | |
@FXML | |
private Label label; | |
@FXML | |
private void handleButtonAction(ActionEvent event) { | |
System.out.println("You clicked me!"); | |
label.setText("Hello World!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment