Skip to content
Snippets Groups Projects
Commit f285f57c authored by timmolter's avatar timmolter
Browse files

minor clean up

parent 1d3942b2
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ public class PlotContent implements IChartPart { ...@@ -93,7 +93,7 @@ public class PlotContent implements IChartPart {
} }
if (chart.getAxisPair().getXAxis().getAxisType() == AxisType.DATE) { if (chart.getAxisPair().getXAxis().getAxisType() == AxisType.DATE) {
x = new BigDecimal(((Date) xItr.next()).getTime()); x = new BigDecimal(((Date) xItr.next()).getTime());
System.out.println(x); // System.out.println(x);
} }
BigDecimal y = new BigDecimal(yItr.next().doubleValue()); BigDecimal y = new BigDecimal(yItr.next().doubleValue());
......
...@@ -87,9 +87,7 @@ public class SwingWrapper { ...@@ -87,9 +87,7 @@ public class SwingWrapper {
// Create and set up the window. // Create and set up the window.
JFrame frame = new JFrame("XChart"); JFrame frame = new JFrame("XChart");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// frame.setSize(new Dimension(charts.get(0).getWidth(), charts.get(0).getHeight()));
JPanel chartPanel = new XChartJPanel(charts.get(0)); JPanel chartPanel = new XChartJPanel(charts.get(0));
// frame.getContentPane().add(chartPanel);
frame.add(chartPanel); frame.add(chartPanel);
// Display the window. // Display the window.
...@@ -119,7 +117,7 @@ public class SwingWrapper { ...@@ -119,7 +117,7 @@ public class SwingWrapper {
for (Chart chart : charts) { for (Chart chart : charts) {
if (chart != null) { if (chart != null) {
JPanel chartPanel = new XChartJPanel(chart); JPanel chartPanel = new XChartJPanel(chart);
frame.getContentPane().add(chartPanel); frame.add(chartPanel);
} else { } else {
JPanel chartPanel = new JPanel(); JPanel chartPanel = new JPanel();
frame.getContentPane().add(chartPanel); frame.getContentPane().add(chartPanel);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment