Jump to content
Software FX Community

CommandStyles Question

Recommended Posts

I use ChartFX for JavaServer  7.0

I'm trying to add a new Command to the ToolBar, with a new image and setting to call a javascript. I'm following the documentation in the Programmers Guide. The line in bold/italic doesnt work.  What is the correct syntax?


cmds = chart1.getCommands();

cmds.add(new Command(20));


cmds.appendImage(new ImageIcon("/selfservice/images/left_arrow.jpg").getImage());





cmds.get(20).setText("custom Cmd");


Share this post

Link to post
Share on other sites

A follow-up to my question.  I think i figured out how to set a style. However, the image when i mouseover the new icon i just added, shows me a broken image

How do i add a mouseover image?

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...