0

这是我如何显示图表并尝试使用新的 Y 范围重新渲染的片段。

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();
4

1 回答 1

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.

于 2012-08-03T23:55:52.890 回答