java left logo
java middle logo
java right logo
 

Home arrow Other API Tips
 
 
Main Menu
Home
Java Tutorials
Book Reviews
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Java Network
Java Forums
Java Blog




Most Visited Tips
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Book Reviews
Top Rated Tips
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Book Reviews


Statistics
Registered Users: 3918
Java SE Tips: 614
Java ME Tips: 202
Java EE Tips: 183
Other API Tips: 779
Java Applications: 298
Java Libraries: 209
Java Games: 16
Book Reviews:
 
 
 
I want my action to appear between to existing items/in a specific place in the menu. Can I do that? E-mail
User Rating: / 0
PoorBest 

Yes. Use ordering attributes in the layer file for your module.

It is not uncommon to refer to the file names of actions in other modules as the file you want your action to be before or after. This creates a soft dependency on that other module - your action will still be present even if the other module is disabled (so the before or after file will be missing). If the action is removed or renamed (renaming is discouraged), your action may appear in the wrong place. As a safeguard, it is possible to specify more than one before/after attribute - in practice this is seldom done (it's not the end of the world if ordering breaks, and you usually know what modules your module will be used with, and it's unlikely that both before and after files will disappear, so the action is likely to remain generally where it's supposed to be).

If you are using NetBeans 5.0 or greater's module-building support, the new Action template will let you specify a location for the action in the wizard and generate the attributes for you.

You need to have at least one before attribute and one after attribute to guarantee the exact location of your item.

Source: NetBeans FAQ


 Related Tips

 
< Prev   Next >

Page 1 of 0 ( 0 comments )

You can share your information about this topic using the form below!

Please do not post your questions with this form! Thanks.


Name (required)


E-Mail (required)

Your email will not be displayed on the site - only to our administrator
Homepage(optional)



Comment Enable HTML code : Yes No



 
       
         
     
 
 
 
   
 
 
java bottom left
java bottom middle
java bottom right
RSS 0.91 FeedRSS 1.0 FeedRSS 2.0 FeedATOM FeedOPML Feed

Home - About Us - Privacy Policy
Copyright 2005 - 2008 www.java-tips.org
Java is a trademark of Sun Microsystems, Inc.