0

Here is a snipit of how I display my graph, and attempt to re render with the new Y ranges.

fpe2.FPE_ExportData(outPutFilePath, xmlOutDescriptorPath);

g = new GraphUtil();
g.collectData(fpe2.subTaskType, "FPE", MaxY, MinY, PlotGraphPanel);
g.graphMake();

PlotGraphPanel.add(g.cPanel1, BorderLayout.CENTER);
PlotGraphPanel.validate();
PlotGraphPanel.repaint();
mil06
  • 29
  • 8
  • Please edit your question to include an [sscce](http://sscce.org/) that shows your current approach. – trashgod Aug 03 '12 at 23:56

1 Answers1

1

Absent your sscce, it's not clear how your program fails. You should only need validate() and repaint() if you add or remove components. You can update your chart dynamically as shown here and here.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045