From the course: Learning JavaFX GUI Development

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Solution: Use FXML to let a user ask a question

Solution: Use FXML to let a user ask a question

From the course: Learning JavaFX GUI Development

Start my 1-month free trial

Solution: Use FXML to let a user ask a question

- [Voiceover] Welcome back. How did you like your first challenge, I hope you had fun with it. I'd like to show you my approach to the problem Although I want to make sure that you understand, your program might be different than mine, because every programmer has their own nuances. Let's get started, the first thing I'm gonna do is create a new project in NetBeans, File, New Project, I wanna make sure I choose, under Projects, the JavaFX, FxML application, next, and I'm gonna name it, AskMe. Remember, the FxML Template creates three files, your main AskMe net Java file, our FxML Document, dot FxML File, and our document controller, dot Java. We're not going to make a lot of changes in the AskMe dot Java, but I would like to add a title to my window, so I'm gonna scroll down, and on line 25 I'm gonna add stage dot set title, I'm gonna add a title that says "The oracle awaits your questions" That's the only thing I need to do here. Let's go to the FxML file next. As you can tell by…

Contents