Using ChartPanel

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
guymac
Posts: 7
Joined: Wed Feb 18, 2004 12:56 am

Using ChartPanel

Post by guymac » Tue Apr 27, 2004 8:22 pm

Hi, I have troubles combining ChartPanel with any other swing components in a JApplet. Whatever component I add first gets 100% of the applet paintable area... how can I get the ChartPanel to play nice with other components in the same layout?

garv
Posts: 127
Joined: Wed Mar 31, 2004 3:44 pm
Location: Amsterdam, The Netherlands

Post by garv » Wed Apr 28, 2004 10:42 am

This isn't really a JFreeChart question (it's general Swing), but I suspect you are not (properly) using a LayoutManager. BorderLayout is a good place to start, or google a bit to find a Swing tutorial, I'm sure they're around ;).

HTH

Locked