Get rid of jfreechart chartpanel unnecessary space
- by ryvantage
I am trying to get a JFreeChart ChartPanel to remove unwanted extra space between the edge of the panel and the graph itself.
To best illustrate, here's a SSCCE (with JFreeChart installed):
public static void main(String[] args) {
JPanel panel = new JPanel(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
…