Permalink
Browse files

update example slightly.

  • Loading branch information...
sundbp committed Mar 31, 2011
1 parent 221618d commit 3a8217839e78d90c7d6aaf477ed295146bc3ef6c
Showing with 4 additions and 5 deletions.
  1. +4 −5 examples/pie_chart_demo_1.rb
@@ -1,15 +1,14 @@
$LOAD_PATH << File.dirname(__FILE__) + "/../lib"
require 'rfreechart'
-java_import javax.swing.JPanel
-
-java_import org.jfree.chart.ChartFactory
-java_import org.jfree.chart.ChartPanel
-java_import org.jfree.data.general.DefaultPieDataset
java_import org.jfree.ui.ApplicationFrame
java_import org.jfree.ui.RefineryUtilities
class PieChartDemo1 < ApplicationFrame
+ java_import javax.swing.JPanel
+ java_import org.jfree.chart.ChartFactory
+ java_import org.jfree.chart.ChartPanel
+ java_import org.jfree.data.general.DefaultPieDataset
def create_dataset
dataset = DefaultPieDataset.new

0 comments on commit 3a82178

Please sign in to comment.