Posts

Showing posts from March, 2016

JavaFX 8 Tutorial 59 - XYCharts (ScatterChart, LineChart, AreaChart, Sta...

Image
The Code written in this tutorial is: package javafx.pkg8.tutorial.pkg59.xycharts; import javafx.application.Application; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.scene.Scene; import javafx.scene.chart.AreaChart; import javafx.scene.chart.BarChart; import javafx.scene.chart.CategoryAxis; import javafx.scene.chart.LineChart; import javafx.scene.chart.NumberAxis; import javafx.scene.chart.ScatterChart; import javafx.scene.chart.StackedAreaChart; import javafx.scene.chart.StackedBarChart; import javafx.scene.chart.XYChart; import javafx.scene.chart.XYChart.Series; import javafx.scene.layout.StackPane; import javafx.stage.Stage; /**  *  * @author Ram  */ public class JavaFX8Tutorial59XYCharts extends Application {         @Override     public void start(Stage primaryStage) {                 primaryStage.setTitle("JavaFX 8 Tutorial 59 - Different XYCharts");                 StackPane root =

JavaFX 8 Tutorial 58 - Pie Chart and Mouse Event Handler

Image
The Code written in this tutorial is : /*  * To change this license header, choose License Headers in Project Properties.  * To change this template file, choose Tools | Templates  * and open the template in the editor.  */ package tutorial.pkg56.pie.chart; import javafx.application.Application; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.geometry.Insets; import javafx.scene.Scene; import javafx.scene.chart.PieChart; import javafx.scene.control.Label; import javafx.scene.input.MouseEvent; import javafx.scene.layout.BorderPane; import javafx.scene.text.Font; import javafx.scene.text.FontWeight; import javafx.stage.Stage; /**  *  * @author Ram  */ public class Tutorial56PieChart extends Application {     private final ObservableList<PieChart.Data> details = FXCollections.observableArrayList();     private BorderPane root;     private PieChart pieChart;     private Label label;         @Override

JavaFX 8 Tutorial 57 - Pie Chart and CSS

Image
The code written in this tutorial is: package tutorial.pkg56.pie.chart; import javafx.application.Application; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.geometry.Insets; import javafx.scene.Scene; import javafx.scene.chart.PieChart; import javafx.scene.control.Label; import javafx.scene.input.MouseEvent; import javafx.scene.layout.BorderPane; import javafx.scene.text.Font; import javafx.scene.text.FontWeight; import javafx.stage.Stage; /**  *  * @author Ram  */ public class Tutorial56PieChart extends Application {     private final ObservableList<PieChart.Data> details = FXCollections.observableArrayList();     private BorderPane root;     private PieChart pieChart;         @Override     public void start(Stage primaryStage) {                 primaryStage.setTitle("JavaFX 8 Tutorial 58 - Pie Chart and Mouse Event Handler");         details.addAll(new PieChart.Data("Printing Cost&

JavaFX 8 Tutorial 56 - Pie Chart

Image
The Code written in this tutorial is: package tutorial.pkg56.pie.chart; import javafx.application.Application; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.geometry.Insets; import javafx.scene.Scene; import javafx.scene.chart.PieChart; import javafx.scene.control.Label; import javafx.scene.input.MouseEvent; import javafx.scene.layout.BorderPane; import javafx.scene.text.Font; import javafx.scene.text.FontWeight; import javafx.stage.Stage; /**  *  * @author Ram  */ public class Tutorial56PieChart extends Application {     private final ObservableList<PieChart.Data> details = FXCollections.observableArrayList();     private BorderPane root;     private PieChart pieChart;       @Override     public void start(Stage primaryStage) {               primaryStage.setTitle("JavaFX 8 Tutorial 58 - Pie Chart and Mouse Event Handler");         details.addAll(new PieCha