JFreeChart constant redraws in JInternalFrame

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
forsey85
Posts: 17
Joined: Mon Jul 03, 2006 2:55 pm

JFreeChart constant redraws in JInternalFrame

Post by forsey85 » Thu Dec 14, 2006 4:03 pm

Hi,

I have noticed that a JFreeChart in a JDialog or JFrame doesn't get redrawn during the dragging of the window, however in a JInternalFrame the graph is constantly being redrawn while the JInternalFrame is being dragged.

I have some fairly large graphs and this slows down the dragging of JInternalFrames significantly. Does anyone know of an easy method to stop the redrawing of the chart during JInternalFrame dragging?

Thanks

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Post by skunk » Thu Dec 14, 2006 4:12 pm

Code: Select all

jDesktopPane.setDragMode(int dragMode)

forsey85
Posts: 17
Joined: Mon Jul 03, 2006 2:55 pm

Post by forsey85 » Thu Dec 14, 2006 4:16 pm

I had just found that out and was about to post it here :lol:

It would be nice to have a live drag mode though. Does the chart need to be constantly repainted during the live drag of a JInternalFrame?

Locked