In the past it was extremely difficult to get your UI layout the way you wanted in Java. With the JavaFX Layout API it makes this process much easier. The API includes many different container classes (which are called panes) that automate common layout models. For details on each of the layouts mentioned here and other layouts, make sure you check out the javafx.scene.layout api.
- [Voiceover] Have you ever tried to create…a nice looking user interface using Java?…In the past I'd have to say it was quite…difficult to get your UI layout the way you…wanted but I have great news.…With the JavafX layout API it makes the…process much easier, the Javafx.scene.layout API…includes many different container…classes which are called panes, that…automate common layout models.…Let's take a look at a few, the BorderPane…lays out it's content in the top, bottom,…right, left, and center region.…
The horizontal box class arranges its…content nodes horizontally in a single row.…And of course if we have horizontal…we also have to have vertical.…The vertical box lays out content…vertically in a single column.…The vertical box would be handy…for a list of items or even a menu.…I do want to point out the the…horizontal box and the vertical box…both prevent the window from being resized…too small so you can't see the elements inside.…Another layout is the StackPane,…this class places its content nodes…in a back to front single stack.…
- 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.