Posts

JavaFX 8 Tutorial 62 - Jasper Report

Image
JavaFX 8 Tutorial 62 – Jasper Report Steps: 1.    Download Jasper Report Jar Link - https://sourceforge.net/projects/jasperreports/files/jasperreports/JasperReports%206.2.0/ 2.    Download iReport Plugin for Netbeans Link – http://plugins.netbeans.org/plugin/4425/ireport 3.    To install iReport Plugin go to -> Tools -> Plugin -> Dowloaded -> Add Plugins. 4.    Add Database jar (in my case its sqlite-jdbc.jar ) and Project Jar ( User_Info_App.jar ) to iReport classpath, to do so go to -> Tools -> Options -> select iReport -> Add Database  and Project jar. 5.    On welcome to iReport Page click on step 1 -> create new Database JDBC Connection -> Give ·        Name – Demo ·        JDBC Driver – org.sqlite.JDBC ·        JDBC URL - jdbc:sqlite:C:\Users\RAM ALAPURE\Documents\NetBeansProjects\User Info App\Us...

JavaFX 8 Tutorial 61 - Retrive Database Values Into CheckBox

Image
The code written in this tutorial is -                     // Retrive Hobbies Into CheckBox                                         if(rs.getString("Hobbies")!= null){                         checkBox1.setSelected(false);                         checkBox2.setSelected(false);                         checkBox3.setSelected(false);                                                 //hobbies in the string formate - [Playing , Dancing]                         System.out.println(r...

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...

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 Pi...

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 ...

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("J...

JavaFX 8 Tutorial 55 - Centering Image Using StackPane

Image
package tutorial.pkg55.centering.image; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.layout.StackPane; import javafx.scene.paint.Color; import javafx.scene.shape.Ellipse; import javafx.stage.Stage; /**  *  * @author Ram  */ public class Tutorial55CenteringImage extends Application {         @Override     public void start(Stage primaryStage) {         primaryStage.setTitle("JavaFX 8 Tutorial 55 - Centering Image Using StackPane");                 StackPane root = new StackPane();         Scene scene = new Scene(root, 400, 200);                 Image img = new Image("file:Javafx.jpg", 100, 150, true, true);         ImageView iv = new ImageView(img);      ...