JFreeChart in a SplitPane does not resize

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
pho
Posts: 5
Joined: Thu Nov 16, 2006 6:47 pm

JFreeChart in a SplitPane does not resize

Post by pho » Sat Jan 13, 2007 12:07 am

Hi

I need to place a jfreechart in a JSplitPane. However, When I adjust
the window which contains the JSplitPane, the jfreechart does not resize.

If it's a normal JPanel instead of a JSplitPane, jfreechart resize
properly when the window is resized.

Is this the expected behaviour?

Thanks.

Phil

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Jan 15, 2007 2:33 pm

It depends on the value of the resizeWeight property of your JSplitPane, if I recall correctly. That's a Swing detail though, not something specific to JFreeChart.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

itsmaddy
Posts: 10
Joined: Wed Dec 15, 2010 1:05 pm
antibot: No, of course not.

Re: JFreeChart in a SplitPane does not resize

Post by itsmaddy » Tue Feb 15, 2011 12:41 pm

Hi,
I also have the same problem.
I have a splitpane with charts inside the jtabbedpane.
i don't want to scroll the chart, I want the chart to resize according to the splitpane.
Does any one know how to overcome this problem?
thanks
Maneesh

Locked