Another great visualization tool is a chart. JavaFX supports eight types of charts. Here are some of the built-in chart types with javafx. Each of these charts comes with default configurations that make creating charts easy. Lets try a pie chart to show where our money goes each month, a monthly budget.
- [Voiceover] Another great visualization technique…is to use a chart.…JavaFX supports eight different types of charts.…The Javafx.scene.chart API lists each…of the eight different types of charts.…Some of the commonly used charts are…a LineChart, a BarChart, a PieChart, and a ScatterChart.…Each of these charts comes with some default configurations…that make creating charts easy.…Let's try a PieChart to show where…our money goes each month.…
Let's do a monthly budget.…In NetBeans I'm going to create a new application,…File, New Project,…Next, and I'm gonna call it monthly budget.…I'm gonna scroll down a little bit,…and delete the template code.…In order to create the chart, I need to have a list…of data that will be displayed in my chart.…So we're gonna use the observable list.…The type of data that I'm gonna use is PieChart.…
And I'm just gonna call it pieData.…I'm gonna use the FXCollections….observableArrayList,…and now I'm going to define the different values…that I want to include in my PieChart.…Alright, so now we have five pieces to my pie.…
- 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.