Learn about the final two controls required for the application—a Button control for submitting the data, and a Text control for displaying a message when the user presses the button. Create the button and position it on the bottom right, which is a commo
- [Instructor] The final two controls required…for the application are a button control…for submitting the data and a text control…for displaying a message when the user presses the button.…Right on line 61, I will paste in the necessary code.…(keyboard clacking)…For our objective here, adding the button and text,…we first create the button and position it…on the bottom right,…which is a common place for our buttons…that perform an action affecting the entire form.…
Here, the first line, which is specifically on line 62,…we create a button named btn with the label Sign in,…and the second line creates an HBox layout pane named…hbbtn with spacing of 10 pixels.…Now, this HBox pane sets an alignment…for the buttons that is different…from the alignment applied to the other controls…in the grid pane.…
Now, you can see on line 64,…the alignment property has a value of bottom right,…which positions a node at the bottom of the space vertically…and at the right edge of the space horizontally.…On 65, the button is added as a child of the HBox pane…
- What is NetBeans?
- Creating templates
- Importing and exporting projects
- Debugging code
- Creating a project
- Creating a GridPane layout
- Creating the UI
- Deploying and executing an app
- Organizing the environment
Skill Level Beginner
1. Intro to NetBeans
2. Templates, Projects, and Debugging
3. Managing Services
4. Desktop Development: JavaFX
5. Web Development - PrimeFaces
6. Working with Clean Code
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.