public class ClickMe
extends javafx.application.Application
| Modifier and Type | Field and Description |
|---|---|
(package private) javafx.scene.control.Button |
btn |
(package private) int |
clickCounter |
(package private) javafx.scene.control.Label |
lbl |
| Constructor and Description |
|---|
ClickMe() |
| Modifier and Type | Method and Description |
|---|---|
void |
buttonClick()
The action that will happen upon clicking the button
|
static void |
main(java.lang.String[] args)
Like any Java program, a JavaFX program must have a main method.
|
private void |
setupControls(javafx.scene.layout.BorderPane pane)
Method to establish properties of controls
|
void |
start(javafx.stage.Stage primaryStage)
The start method is an abstract method, which means that there is no default
implementation provided as a part of the Application class.
|
javafx.scene.control.Button btn
javafx.scene.control.Label lbl
int clickCounter
public static void main(java.lang.String[] args)
args - No command line arguments needed for this program.public void start(javafx.stage.Stage primaryStage)
start in class javafx.application.ApplicationprimaryStage - the main (or primary) stage for this application, onto
which the scene can be set.public void buttonClick()
private void setupControls(javafx.scene.layout.BorderPane pane)
pane - The layout pane into which the controls will be placed