Skip to main content

Netbeans 5.5 and SVG Menus

4 replies [Last post]
Joined: 2005-06-24

I'm attempting to use an SVG menu in a NB5.5 project but it fails to animate in any of pre-packaged NB emulators. However, when I open the SVG file within NB's editor and select the "Toggle Run Animation", the SVG menu animation will execute correctly. My Project Configuration uses the 2.5 Toolkit, CLDC-1.1 and MIDP-2.1.

Does anyone have a solution for this?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-07-18

First of all, what kind of animations do you use in the graphics? For menu, the animations need to be triggered by DOM events. For standard animation, a classic time-based animations should work.

The next thing - as Aastha already wrote, you need to make sure the component you use for displaying the animation has "start animation immediately" se to true.

Joined: 2004-03-04


I assume you are using the WTK "DefaultPlatform" configuration for your project? Have you checked that the "SVG API 1.0" optional package is selected in the platform?

-- Terrence

Joined: 2005-06-24

Yes, I believe it is...When I right click the app name and choose properties, the dialog that appears has the Project Configuration set to "DefaultConfiguration" and within the Optional Packages list the "SVG API 1.0" is checked.

Joined: 2004-04-19

The other thing to check is that the "Start Animation Immediately" property is set/checked for the SVG Menu component. In the NetBeans Flow Designer, when you select the SVGMenu component that you have dropped into the Flow Designer, the SVGMenu Properties property editor window will display on the right hand side just below the Palette from which the SVGMenu was dragged and dropped into the Flow Designer. The second property in this properties editor is the "Start Animation Immediately" option. Make sure this is checked. If this is not checked, then you could also cause the animation to play via JSR 226 code.