From: luukkainen Date: Tue, 4 Feb 2014 12:16:31 +0000 (+0000) Subject: JFreeChart rendering fix (Java7 bug). X-Git-Tag: 1.8.1~147 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=385ebed075f774e28564268102517b13f7d740b5;p=simantics%2Fsysdyn.git JFreeChart rendering fix (Java7 bug). fixes #4693 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@28768 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/ChartComposite.java b/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/ChartComposite.java index 68eaa94f..dd5b069a 100644 --- a/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/ChartComposite.java +++ b/org.simantics.jfreechart/src/org/simantics/jfreechart/chart/ChartComposite.java @@ -131,7 +131,16 @@ public class ChartComposite extends Composite { frame.remove(panel); composite.layout(); JFreeChart chart = (JFreeChart)getObject(); - panel = new ChartPanel(chart, false, true, true, true, true); + //panel = new ChartPanel(chart, false, true, true, true, true); + panel = new ChartPanel(chart, + ChartPanel.DEFAULT_WIDTH, + ChartPanel.DEFAULT_HEIGHT, + ChartPanel.DEFAULT_MINIMUM_DRAW_WIDTH, + ChartPanel.DEFAULT_MINIMUM_DRAW_HEIGHT, + ChartPanel.DEFAULT_MAXIMUM_DRAW_WIDTH, + ChartPanel.DEFAULT_MAXIMUM_DRAW_HEIGHT, + false, + false, true, true, true, true); frame.add(panel); // frame.repaint(); frame.validate();