Vidya Posted June 20, 2011 Report Share Posted June 20, 2011 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? Thanks cmds = chart1.getCommands(); cmds.add(new Command(20)); cmds.get(20).setImageIndex(1); cmds.appendImage(new ImageIcon("/selfservice/images/left_arrow.jpg").getImage()); cmds.get(20).setStyle(CommandStyles.SMART_LIST); cmds.get(20).setEnabled(true); cmds.get(20).setChecked(true); cmds.get(20).setScript("goBack"); cmds.get(20).setText("custom Cmd"); Quote Link to comment Share on other sites More sharing options...
Vidya Posted June 20, 2011 Author Report Share Posted June 20, 2011 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.