Tutorial Downloads .com

Home

The JFreeChart Class Library | REFERENCE DOCUMENTATION | PDF study material

JFreeChart is a free Java class library for generating charts.The chart types supported by JFreeChart include pie charts, bar charts (horizontal and vertical, regular and stacked, optional 3D-effect), line charts, scatter plots, time series charts (including moving averages, high-low-open-close charts and candlestick plots),Gantt charts, meter charts (dial and thermometer), symbol charts, wind plots, combination charts and more.

Contents

1 Introduction 2

1.1 What is JFreeChart? . . . . . . . . . . . . . . . . . . . . . . . . . 2

1.2 This Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

1.3 Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . . . 3

1.4 Comments and Suggestions . . . . . . . . . . . . . . . . . . . . . 3

2 Sample Charts 4

2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

2.2 Pie Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

2.3 Bar Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

2.4 Line Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

2.5 XY Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2.6 Area Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

2.7 Step Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

2.8 Gantt Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

2.9 Combined Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

2.10 Future Development . . . . . . . . . . . . . . . . . . . . . . . . . 11

3 Downloading and Installing JFreeChart 12

3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

3.2 Download . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

3.3 Unpacking the Files . . . . . . . . . . . . . . . . . . . . . . . . . 12

3.4 Running the Demonstration Application . . . . . . . . . . . . . . 13

3.5 Compiling the Source . . . . . . . . . . . . . . . . . . . . . . . . 13

3.6 Generating the Javadoc Documentation . . . . . . . . . . . . . . 14

4 Developing with JFreeChart 15

4.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

4.2 The Basic Structure . . . . . . . . . . . . . . . . . . . . . . . . . 15

4.3 Creating Your First Chart . . . . . . . . . . . . . . . . . . . . . . 15

4.4 More about Datasets . . . . . . . . . . . . . . . . . . . . . . . . . 17

5 Customising Charts 18

5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

5.2 Customising Charts . . . . . . . . . . . . . . . . . . . . . . . . . 18

5.3 Customising Plots . . . . . . . . . . . . . . . . . . . . . . . . . . 19

5.4 Customising Axes . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

6 Charts Using Category Datasets 23

6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

6.2 Creating a Line Chart with Categorical Data . . . . . . . . . . . 23

7 Charts Using XYDatasets 27

7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

7.2 Creating a Line Chart with Numerical Data . . . . . . . . . . . . 27

8 Combined Charts 32

8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

8.2 Creating an Overlaid XY Plot . . . . . . . . . . . . . . . . . . . . 32

8.3 Creating a CombinedXYPlot . . . . . . . . . . . . . . . . . . . . 34

9 Exporting Charts to Acrobat PDF 36

9.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

9.2 What is Acrobat PDF? . . . . . . . . . . . . . . . . . . . . . . . 36

9.3 iText . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

9.4 Graphics2D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

9.5 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

9.6 The Application . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

9.7 Viewing the PDF File . . . . . . . . . . . . . . . . . . . . . . . . 41

9.8 Unicode Characters . . . . . . . . . . . . . . . . . . . . . . . . . . 41

10 Exporting Charts to SVG Format 45

10.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

10.2 What is SVG? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

10.3 Batik . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

10.4 Batik and JFreeChart . . . . . . . . . . . . . . . . . . . . . . . . 45

10.5 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

10.6 The Application . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

10.7 Viewing the SVG . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

11 Packages 48

11.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

12 Package: com.jrefinery.chart 49

12.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

12.2 AbstractCategoryItemRenderer . . . . . . . . . . . . . . . . . . . 49

12.3 AbstractTitle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50

12.4 AbstractXYItemRenderer . . . . . . . . . . . . . . . . . . . . . . 51

12.5 AreaCategoryItemRenderer . . . . . . . . . . . . . . . . . . . . . 51

12.6 AreaXYItemRenderer . . . . . . . . . . . . . . . . . . . . . . . . 52

12.7 Axis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

12.8 AxisConstants . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

12.9 AxisNotCompatibleException . . . . . . . . . . . . . . . . . . . . 54

12.10BarRenderer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55

12.11CandlestickRenderer . . . . . . . . . . . . . . . . . . . . . . . . . 55

12.12CategoryAxis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

12.13CategoryItemRenderer . . . . . . . . . . . . . . . . . . . . . . . . 56

12.14CategoryPlot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

12.15CategoryPlotConstants . . . . . . . . . . . . . . . . . . . . . . . . 60

12.16ChartFactory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

12.17ChartFrame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62

12.18ChartMouseEvent . . . . . . . . . . . . . . . . . . . . . . . . . . 62

12.19ChartMouseListener . . . . . . . . . . . . . . . . . . . . . . . . . 62

12.20ChartPanel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

12.21ChartPanelConstants . . . . . . . . . . . . . . . . . . . . . . . . . 65

12.22ChartRenderingInfo . . . . . . . . . . . . . . . . . . . . . . . . . 65

12.23ChartUtilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

12.24CombinedXYPlot . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

12.25CrosshairInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

12.26DateAxis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

12.27DateTitle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

12.28DateUnit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

12.29DefaultShapeFactory . . . . . . . . . . . . . . . . . . . . . . . . . 69

12.30HighLow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69

12.31HighLowRenderer . . . . . . . . . . . . . . . . . . . . . . . . . . 70

12.32HorizontalAxis . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

12.33HorizontalBarRenderer . . . . . . . . . . . . . . . . . . . . . . . . 71

12.34HorizontalCategoryAxis . . . . . . . . . . . . . . . . . . . . . . . 71

12.35HorizontalCategoryPlot . . . . . . . . . . . . . . . . . . . . . . . 72

12.36HorizontalDateAxis . . . . . . . . . . . . . . . . . . . . . . . . . . 73

12.37HorizontalIntervalBarRenderer . . . . . . . . . . . . . . . . . . . 73

12.38HorizontalNumberAxis . . . . . . . . . . . . . . . . . . . . . . . . 73

12.39HorizontalNumberAxis3D . . . . . . . . . . . . . . . . . . . . . . 74

12.40HorizontalSymbolicAxis . . . . . . . . . . . . . . . . . . . . . . . 74

12.41HorizontalValuePlot . . . . . . . . . . . . . . . . . . . . . . . . . 74

12.42ImageTitle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

12.43JFreeChart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

12.44JFreeChartConstants . . . . . . . . . . . . . . . . . . . . . . . . . 77

12.45JFreeChartInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

12.46Legend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

12.47LegendItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

12.48LegendItemCollection . . . . . . . . . . . . . . . . . . . . . . . . 78

12.49LegendItemLayout . . . . . . . . . . . . . . . . . . . . . . . . . . 78

12.50LineAndShapeRenderer . . . . . . . . . . . . . . . . . . . . . . . 79

12.51Marker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

12.52MeterLegend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

12.53MeterPlot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

12.54NumberAxis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

12.55NumberTickUnit . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

12.56OverlaidVerticalCategoryPlot . . . . . . . . . . . . . . . . . . . . 83

12.57OverlaidXYPlot . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83

12.58PeriodMarkerPlot . . . . . . . . . . . . . . . . . . . . . . . . . . . 84

12.59PiePlot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84

12.60Plot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

12.61PlotException . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88

12.62PlotNotCompatibleException . . . . . . . . . . . . . . . . . . . . 88

12.63SeriesShapeFactory . . . . . . . . . . . . . . . . . . . . . . . . . . 88

12.64ShapeFactory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88

12.65SignalRenderer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

12.66Spacer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

12.67StackedHorizontalBarRenderer . . . . . . . . . . . . . . . . . . . 89

12.68StackedVerticalBarRenderer . . . . . . . . . . . . . . . . . . . . . 89

12.69StackedVerticalBarRenderer3D . . . . . . . . . . . . . . . . . . . 90

12.70StandardLegend . . . . . . . . . . . . . . . . . . . . . . . . . . . 90

12.71StandardXYItemRenderer . . . . . . . . . . . . . . . . . . . . . . 90

12.72TextTitle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91

12.73Tick . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91

12.74TickUnit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91

12.75TickUnits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92

12.76ValueAxis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92

12.77VerticalAxis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

12.78VerticalBarRenderer . . . . . . . . . . . . . . . . . . . . . . . . . 94

12.79VerticalBarRenderer3D . . . . . . . . . . . . . . . . . . . . . . . 95

12.80VerticalCategoryAxis . . . . . . . . . . . . . . . . . . . . . . . . . 95

12.81VerticalCategoryPlot . . . . . . . . . . . . . . . . . . . . . . . . . 95

12.82VerticalIntervalBarRenderer . . . . . . . . . . . . . . . . . . . . . 96

12.83VerticalLogarithmicAxis . . . . . . . . . . . . . . . . . . . . . . . 96

12.84VerticalNumberAxis . . . . . . . . . . . . . . . . . . . . . . . . . 97

12.85VerticalNumberAxis3D . . . . . . . . . . . . . . . . . . . . . . . . 97

12.86VerticalSymbolicAxis . . . . . . . . . . . . . . . . . . . . . . . . . 98

12.87VerticalValuePlot . . . . . . . . . . . . . . . . . . . . . . . . . . . 98

12.88VerticalXYBarRenderer . . . . . . . . . . . . . . . . . . . . . . . 98

12.89WindItemRenderer . . . . . . . . . . . . . . . . . . . . . . . . . . 99

12.90XYItemRenderer . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

12.91XYPlot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100

12.92XYStepRenderer . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

13 Package: com.jrefinery.chart.data 103

13.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

13.2 LinearPlotFitAlgorithm . . . . . . . . . . . . . . . . . . . . . . . 103

13.3 MovingAveragePlotFitAlgorithm . . . . . . . . . . . . . . . . . . 103

13.4 PlotFit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

13.5 PlotFitAlgorithm . . . . . . . . . . . . . . . . . . . . . . . . . . . 103

14 Package: com.jrefinery.chart.entity 104

14.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104

14.2 CategoryItemEntity . . . . . . . . . . . . . . . . . . . . . . . . . 104

14.3 ChartEntity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

14.4 EntityCollection . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

14.5 PieSectionEntity . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

14.6 StandardEntityCollection . . . . . . . . . . . . . . . . . . . . . . 107

14.7 XYItemEntity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

15 Package: com.jrefinery.chart.event 109

15.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

15.2 AxisChangeEvent . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

15.3 AxisChangeListener . . . . . . . . . . . . . . . . . . . . . . . . . 109

15.4 ChartChangeEvent . . . . . . . . . . . . . . . . . . . . . . . . . . 109

15.5 ChartChangeListener . . . . . . . . . . . . . . . . . . . . . . . . . 110

15.6 LegendChangeEvent . . . . . . . . . . . . . . . . . . . . . . . . . 110

15.7 LegendChangeListener . . . . . . . . . . . . . . . . . . . . . . . . 110

15.8 PlotChangeEvent . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

15.9 PlotChangeListener . . . . . . . . . . . . . . . . . . . . . . . . . 111

15.10TitleChangeEvent . . . . . . . . . . . . . . . . . . . . . . . . . . 111

15.11TitleChangeListener . . . . . . . . . . . . . . . . . . . . . . . . . 111

16 Package: com.jrefinery.chart.tooltips 112

16.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

16.2 CategoryToolTipGenerator . . . . . . . . . . . . . . . . . . . . . 112

16.3 PieToolTipGenerator . . . . . . . . . . . . . . . . . . . . . . . . . 112

16.4 StandardCategoryToolTipGenerator . . . . . . . . . . . . . . . . 113

16.5 StandardHighLowToolTipGenerator . . . . . . . . . . . . . . . . 113

16.6 StandardPieToolTipGenerator . . . . . . . . . . . . . . . . . . . . 113

16.7 StandardToolTips . . . . . . . . . . . . . . . . . . . . . . . . . . 113

16.8 StandardXYToolTipGenerator . . . . . . . . . . . . . . . . . . . 114

16.9 ToolTip . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

16.10ToolTipGenerator . . . . . . . . . . . . . . . . . . . . . . . . . . 115

16.11ToolTips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

16.12XYToolTipGenerator . . . . . . . . . . . . . . . . . . . . . . . . . 115

17 Package: com.jrefinery.chart.ui 116

17.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116

17.2 AxisPropertyEditPanel . . . . . . . . . . . . . . . . . . . . . . . . 116

17.3 ChartPropertyEditPanel . . . . . . . . . . . . . . . . . . . . . . . 116

17.4 LegendPropertyEditPanel . . . . . . . . . . . . . . . . . . . . . . 116

17.5 NumberAxisPropertyEditPanel . . . . . . . . . . . . . . . . . . . 117

17.6 PlotPropertyEditPanel . . . . . . . . . . . . . . . . . . . . . . . . 117

17.7 TitlePropertyEditPanel . . . . . . . . . . . . . . . . . . . . . . . 117

18 Package: com.jrefinery.data 118

18.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118

18.2 AbstractDataset . . . . . . . . . . . . . . . . . . . . . . . . . . . 118

18.3 AbstractSeriesDataset . . . . . . . . . . . . . . . . . . . . . . . . 118

18.4 BasicTimeSeries . . . . . . . . . . . . . . . . . . . . . . . . . . . 119

18.5 CategoryDataset . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

18.6 CombinationDataset . . . . . . . . . . . . . . . . . . . . . . . . . 121

18.7 CombinedDataset . . . . . . . . . . . . . . . . . . . . . . . . . . . 122

18.8 Dataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122

18.9 DatasetChangeEvent . . . . . . . . . . . . . . . . . . . . . . . . . 123

18.10DatasetChangeListener . . . . . . . . . . . . . . . . . . . . . . . . 123

18.11Datasets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123

18.12Day . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

18.13DefaultCategoryDataset . . . . . . . . . . . . . . . . . . . . . . . 125

18.14DefaultPieDataset . . . . . . . . . . . . . . . . . . . . . . . . . . 126

18.15DefaultXYDataset . . . . . . . . . . . . . . . . . . . . . . . . . . 127

18.16DomainInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127

18.17HighLowDataset . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

18.18Hour . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

18.19IntervalXYDataset . . . . . . . . . . . . . . . . . . . . . . . . . . 129

18.20IntervalXYZDataset . . . . . . . . . . . . . . . . . . . . . . . . . 130

18.21Millisecond . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

18.22Minute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131

18.23Month . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132

18.24PieDataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

18.25Quarter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134

18.26RangeInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135

18.27Second . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136

18.28SeriesChangeListener . . . . . . . . . . . . . . . . . . . . . . . . . 137

18.29SeriesDataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

18.30SeriesException . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

18.31Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138

18.32SubseriesDataset . . . . . . . . . . . . . . . . . . . . . . . . . . . 138

18.33TimePeriod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138

18.34TimePeriodFormatException . . . . . . . . . . . . . . . . . . . . 140

18.35TimeSeriesCollection . . . . . . . . . . . . . . . . . . . . . . . . . 140

18.36TimeSeriesDataPair . . . . . . . . . . . . . . . . . . . . . . . . . 142

18.37TimeSeriesTableModel . . . . . . . . . . . . . . . . . . . . . . . . 142

18.38Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

18.39Week . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

18.40XYDatapair . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143

18.41XYDataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144

18.42XYSeries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144

18.43XYSeriesCollection . . . . . . . . . . . . . . . . . . . . . . . . . . 145

18.44XYZDataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146

18.45Year . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146

A The GNU Lesser General Public Licence 148

A.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148

A.2 The Licence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148

 

Read this JFreeChart Class Library PDF study material


Resource: http://www.alexchimon.com/file/JFreeCharts/jfreechart-0.9.1-US-v1.pdf
Posted By : Valessa
On date : 07.10.08

Most used JAVA Tutorials

JAVA Tutorials ( Ebooks , PDF's )
Java Code Conventions Java and C++ A critical comparison Generics in the Java Programming Language Writing Robust Java Code
Brewing Java: A Tutorial
Part 1 is a brief introduction to what Java is, why it's cool and what you need to use it. Part 2 is a tutorial introduction to Java that just covers what you need to know to start programming command line applications in Java. This is an introduction to the basic syntax of the language. It skims over many details and completely omits little used features like bit-shift operators. This section is fairly complete. Part 3 covers the basics of writing applets in Java. Part 4 introduces you to objects and classes.
JAVA Interview Questions & Answers
What is a transient variable, Why do threads block on I/O, How are Observer and Observable used, What is synchronization and why is it important, Can a lock be acquired on a class, What is the Collections API,What is the List interface, What is the Vector class, What is an Iterator interface, What is the difference between yielding and sleeping, What are wrapper classes, What is the difference between preemptive scheduling and time slicing, What is clipping, What class is the top of the AWT event hierarchy, What is the purpose of the wait(), notify(), and notifyAll() methods ... etc... etc...
Struts interview Questions and answers | FAQs
Interview questions and answers of Struts
The java.util.concurrent package Collections
The java.util.concurrent package includes a number of additions to the Java Collections Framework.
JAVA PDF Tutorials, Code Conventions, Writing Robust Java Code
Java Code Conventions,Java and C++ A critical comparison,Generics in the Java Programming Language,Writing Robust Java Code
JFreeChart Introduction
JFreeChart is a free 100% Java chart library that makes it easy for developers to display professional quality charts in their applications. JFreeChart's extensive feature set includes:
SCJP Sun Certified Programmer for Java 6 Exam 310-065 - Tutorial book
With hundreds of practice questions and hands-on exercises, SCJP Sun Certified Programmer for Java 6 Study Guide covers what you need to know--and shows you how to prepare--for this challenging exam.
NetBeans, Java, and JFreeChart | PDF study material
This set of “papers” consists of an introduction to JFreeChart and NetBeans as an IDE for Java programming. I attempt herein to ease the learning burden, a little, compared to the misery that I had to suffer through. We are using JDK 1.5.0_03, NetBeans 4.1 (for future work, we've gone over to 5.0), and jfreechart-1.0.0-rc1. I hope its not necessary to mention that all of these programs are free, in the public domain, and can be downloaded and installed on modern PCs.
JSF and Struts Classic Reference Manual | Pdf study material
The following chapters describe how to deal with classic/old style of JSF and Struts development. We recommend users to use JBoss Seam [http://www.redhat.com/developers/jbds/Getting_Started/GetStartSeamGen.html] to simplify development, but until then you can read about classical JSF and Struts usage here.We are going to show you how to create a simple JSF application using the JBoss Developer Studio plug-in for Eclipse.
Effective Java (2nd Edition) - Java Book
Are you looking for a deeper understanding of the Java™ programming language so that you can write code that is clearer, more correct, more robust, and more reusable? Look no further! Effective Java™, Second Edition, brings together seventy-eight indispensable programmer’s rules of thumb: working, best-practice solutions for the programming challenges you encounter every day.
Java Interface User Guide (JAVA PDF)
This Java tutorial covers the details of Java Interface User Guide.An Introduction to the Java Interface The Datalogics Java Interface provides a Java-language wrapper to the Adobe PDF Library to facilitate the rapid creation of PDF documents via Java calls. The Adobe PDF Library is C-based, not Java-sourced, but as it is usable by any application type which supports calls to a C-based library, the Datalogics Java Interface has been created.
Java Technology - What java does? - How java works
Java technology is both a programming language and a platform. In the Java programming language, all source code is first written in plain text files ending with the .java extension. Those source files are then compiled into .class files by the javac compiler. A .class file does not contain code that is native to your processor; it instead contains bytecodes - the machine language of the Java Virtual Machine1 (Java VM). The java launcher tool then runs your application with an instance of the Java Virtual Machine.
Executor Interfaces in JAVA
The java.util.concurrent package defines three executor interfaces: Executor, a simple interface that supports launching new tasks. ExecutorService, a subinterface of Executor, which adds features that help manage the lifecycle, both of the individual tasks and of the executor itself.
BASIC CONCEPTS LESSON-1 JAVA OVERVIEW (JAVA PDF)
This Java tutorial covers the details of BASIC CONCEPTS LESSON-1 JAVA OVERVIEW (JAVA PDF).Before you can start writing Java programs, you need acquire and set up some kind of Java programming software.

Latest added JAVA Tutorials

TDD and Acceptance TDD for Java Developers tutorial book
Learn hands-on to test drive Java code How to avoid common TDD adoption pitfalls Acceptance test driven development and the Fit framework How to test Java EE components-Servlets, JSPs, and Spring Controllers
Java Concurrency in Practice - Book
Threads are a fundamental part of the Java platform. As multicore processors become the norm, using concurrency effectively becomes essential for building high-performance applications. Java SE 5 and 6 are a huge step forward for the development of concurrent applications, with improvements to the Java Virtual Machine to support high-performance, highly scalable concurrent classes and a rich set of new concurrency building blocks. In Java Concurrency in Practice, the creators of these new facilities explain not only how they work and how to use them, but also the motivation and design patterns behind them.
SCJP Sun Certified Programmer for Java 6 Exam 310-065 - Tutorial book
With hundreds of practice questions and hands-on exercises, SCJP Sun Certified Programmer for Java 6 Study Guide covers what you need to know--and shows you how to prepare--for this challenging exam.
Head First Design Patterns - Java tutorial Book
At any given moment, somewhere in the world someone struggles with the same software design problems you have. You know you don't want to reinvent the wheel (or worse, a flat tire), so you look to Design Patterns--the lessons learned by those who've faced the same problems. With Design Patterns, you get to take advantage of the best practices and experience of others, so that you can spend your time on... something else. Something more challenging. Something more complex. Something more fun.
Effective Java (2nd Edition) - Java Book
Are you looking for a deeper understanding of the Java™ programming language so that you can write code that is clearer, more correct, more robust, and more reusable? Look no further! Effective Java™, Second Edition, brings together seventy-eight indispensable programmer’s rules of thumb: working, best-practice solutions for the programming challenges you encounter every day.
Head First Java, 2nd Edition - Java Book
It has taken four years, but with Head First Java the introductory Java book category has finally come of age. This is an excellent book, far more capable than any of the scores of Java-for-novices books that have come before it. Kathy Sierra and Bert Bates deserve rich kudos--and big sales--for developing this book's new way of teaching the Java programming language, because any reader with even a little bit of discipline will come away with true understanding of how the language works. Perhaps best of all, this is no protracted "Hello, World" introductory guide. Readers get substantial exposure to object-oriented design and implementation, serialization, neatwork programming, threads, and Remote Method Invocation (RMI).
Learn how to load, validate and submit forms in Ext JS
This tutorial focuses on the topic of 'Processing Forms'. The journey will include client-side and server-side ?eld validation, form loading, submission, ?eld customization, and layout techniques that will make it a breeze to build great-looking and friendly forms.
Useful Apache Maven Plugins
This tutorial discusses some of the Maven plugins, both from Apache Maven and Codehaus Mojo project which are of great help to Maven builds.
while - Java Term
Details about the Java term while
volatile - Java Term
Details about the Java term volatile