Often applications require forms to gather information from the end-user. Forms require a screen layout, controls, and input events. Here is an image of a typical login form, let's create this using JavaFX. To create this look and feel, a gridPane layout works best. Here is an overlay of a grid.
- [Voiceover] Often, applications require forms…to gather information from the end user.…Forms require a screen layout,…controls, and input events.…Here is an image of a typical login form.…Let's create this using JavaFX.…To create this look and feel,…a GridPane layout works best.…Here is an overlay of a grid.…As you can see, the top row spans two columns.…Then each UI control is placed in a separate cell.…The first row and columns start at zero.…
So this grid has columns zero and one.…It has six rows, zero through five.…Let's switch over to NetBeans.…We'll start by creating a new project in NetBeans.…We'll call it Login.…And click Finish.…If I scroll down a little bit,…you might recognize this code.…As you can see,…NetBeans created a templated Hello World application.…So we want to start by removing all the code…inside the overridden start method,…but leave the start method header,…and the statements for setting the stage title…and showing the stage.…
So I'm going to delete lines 24 down through 37.…Next, I'm going to change the title…
- What is JavaFX?
- Creating a simple JavaFX program
- Drawing lines, shapes, and text
- Applying effects
- Adding and animating images and charts
- Customizing interfaces with CSS
Skill Level Intermediate
1. Get Started with JavaFX
2. Sample Applications
4. User Interface Components
6. Custom UIs
- 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.