使用JGraphT可视化图表时遇到问题。我使用netBeans,我为JGraph和JGraphT导入了.jar并复制了JGraphT Visualizations via JGraph中的所有内容并添加了以下代码:
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
JApplet applet = new JApplet();
applet.init();
JFrame frame = new JFrame();
frame.getContentPane().add(applet);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
但我仍然没有图表可视化。我该怎么做才能在表格上显示图表?