JavaFX Tutorial 05 - Create TextField Java GUI

preview_player
Показать описание
JavaFX Tutorial 05 Create TextField Java GUI
Code Source :
@Override
public void start(Stage primaryStage) {
// cretae Group
Group gr = new Group();
// create label
Label l1 = new Label("Enter your name");
// crete Texfield
TextField t1 = new TextField();

// create scene
Scene sc = new Scene(gr);

}
--------------------------************************----------------------------
Library Importing :

Creating a TextField
Adding a TextField to the Scene Graph
Getting the Text of a TextField
Setting the Text of a TextField
Рекомендации по теме
Комментарии
Автор

good morning and thank you so much for helping out yesterday. I will like to continue this journey of learning JavaFX and possibly other related topics such as connecting to a database and performing queries. I went along with the first 3 videos and I am still on track with you. thank you so much for making this videos again.have a wonderful day.

bamideletewogbade
Автор

okay, I'm back to disturb u hehe sorry... Uhm so from this last one is it safe to think of it this we have I don't know if its a class but its called Group, so I guess it's used to hold many nodes i.e text field, label, etc so the variable group name becomes the parameter when declaring our scene... uhm so sorry if I mixed so many things up.

bamideletewogbade
welcome to shbcf.ru