When i used Sea-glass look and feel with JFreechart, the chart appreared normally but Sea-Glass didn't change the look and feel at all, although when sea-glass was used without Jfreechart, it worked.
So, what could be the reason?
public static void main(String[] args) throws Exception{
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel");
JFreeChart chart = chart_producer(url) //my own static method to make the chart//
JFrame frame = new JFrame();
JPanel panel = new JPanel();
ChartPanel chartPanel = new ChartPanel(chart);
//chartPanel.setPopupMenu(null);
//chartPanel.setMouseZoomable(false);
panel.add(chartPanel);
frame.add(panel);
frame.pack();
frame.setVisible(true);
} catch (ClassNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (InstantiationException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (IllegalAccessException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (UnsupportedLookAndFeelException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
};
}
);
}