Context-Option in jMenuBar

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Wolfgang Lenhard

Context-Option in jMenuBar

Post by Wolfgang Lenhard » Wed Aug 21, 2002 2:17 pm

Hello,
I want to use the option, which are accessible via the context-menu (right click) in the menubar of my frame.
Is there an easy way, just to directly call the commands in the context-menu?

Regards,
Wolfgang Lenhard

David Gilbert

Re: Context-Option in jMenuBar

Post by David Gilbert » Wed Aug 21, 2002 2:46 pm

Take a look in the actionPerformed(...) method of the ChartPanel class to see how the commands are dispatched...most of the methods are public, so you should be able to call them from your code.

Regards,

DG.

Locked