Best practices for building menus using resource bundles?

Greetings; I am curious to find out what the current best practices people are using to build menus/menu bars using resource bundles, specifically ListResourceBundle.
What I am trying to figure out is how best to write my Swing application so it does not need to know what menu items it needs to grab from the resource bundle.
The only idea I have come up with is this:
class MyBundle extends ListResourceBundle {
private Object[][] contents = {
        {"menubar", { {"menu.file.item", "blah"}, ....} }
}Inside the GUI class:
Object[][] menubar = resourceBundle.getObject("menubar");I would then iterate over the menu bar items and build the menu. I would have to use a naming scheme and then parse appropriately to know when to start a new menu, when a submenu occurs, etc.
Is this the common practice, or does anyone know of a more clever way of doing this? I've searched various FAQs and googled about, but I have yet to come across any sort of tutorial or page that covers this.

Anyone have any input on this? Am I close to the solution people are
using out in real production environments?

Similar Messages

  • Best Practices for Team Collaboration using Adobe Captivate

    With a team of 6 Instructional Designers, how can Adobe Captivate be approached where we can collaborate while producing e-learning material while maintaining a consistent look and feel of the e-learning we produce?
    What are the best practices for a team of 6 IDs working and creating e-learning material in Captivate?  Is there anything build-in that allows us to connect to the same libraries, templates, etc to share?  
    Please advise.
    Thank you!
    Susanne

    Only some tips, never collaborated with someone else, being the solo teacher. You didn't mention which version you are using, what I write here is meant for CP7.
    Be sure to prepare a theme and/or a template that will be used by everyone. A theme consists of master slides, object styles, skin editor. Master slides can have custom navigation shape buttons.  In a template you can eventually also prepare different slides with placeholders, and eventually advanced actions etc. For CP6 and earlier that is the only way to reuse advanced actions, in Captivate 7 you can export shared actions that can be imported in any project for reuse.
    A feature that few users know about are the external libraries. You can open the library of any project as an external library in another project. That is a good idea to store assets that you want to use in different projects: images, audio clips, video clips, eventually equations. The shared actions in a library can not (yet?) be used in another project however.
    If you are on CP7 you have automatically the roundtripping with source Adobe Photoshop files and source Audition files, both from CC. That can also make collaboration lot easier if those assets are prepared in those applications. Will not expand on that, because I'm not sure you have the Creative Cloud applications.
    Those are my two cents.
    Lilybiri

  • Help Please!!  Best Practices for building an NDS Project...

    We are doing a Proof of Concept on using NDS to develop non-SAP Java applications. We are attempting to determine if we can replace our current Java development tools with NDS/WAS.
    We are struggling with SAP's terminology and "plumbing" for setting up/defining Java projects. For example, what is and when do you define Tracks, Software Components, Development Components, etc. All of these terms are totally foreign to us and do not relate to our current Java environment (at least not that we can see). We are also struggling with how the DTR and activities tie in to those components.
    If any one has defined best practices for setting up Java projects or has struggled with and overcome these same issues, please provide us with some guidance. This is a very frustrating and time-consuming issue for us.
    Thank you!!

    Hello Peggy,
    this is my first post but I hope it helps you anyway.
    To learn the SAP "language" I additionally used the a SAP Presentation regarding the SAP JDI.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/java development infrastructure real world use webinar.pdf
    I think this one is quite useful as an addon to the other links for information you already got. Your name also indicates that your mother-tongue language is German. If so, the german version of the book (Java-Programming with the SAP WAS) is already available for purchase and really useful. Then, you can also use the information provided by the University of Potsdam. They have an introduction about how to setup a track in the SLD and then how to setup SCs.
    http://epic.hpi.uni-potsdam.de/nwlab/SC+Track.html
    Hope this helps...

  • Best Practices for multiple authors using single project?

    We are having many issues, particularly with moving, renaming, and multiple check out warnings.  We have a single project with many authors and it seems like RH is not designed to work that way. There is an article in the RH devnet-archive in an article entitled "Sharing RoboHelp Project Among Multiple Authors" that says"
    "At first there may be the temptation to let every author work on every file in a project.  This is certainly not a best practice. Regardless of source contraol, it is always best to designate certain authors as owning certain content-related sections, folders, or topics within a project -particulary at the folder level."
    This statement, and our experience seems to indicate that RH is not a true CMS as we had envisioned.  What are the best practices for this scenario to avoid stepping on each others toes and having problems with source control.

    I have moved this to the source control forum for the gurus there to answer.
    Meantime I must admit I read that statement the same way as you first time. However, on rereading I think what the author is saying is not that what you want cannot be done, rather it is best practice to guide authors to work in discrete areas.
    I will leave it to the author or another guru to give you a more complete answer.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Best Practice for SOA-oc4j using more than 4 GB

    Hi,
    is there any best practice how to use the SOA container with more than 4GB?
    Oracle ships only java with 32 Bits...

    If you need to modify the myRIO FPGA personality you have a few options.
    The best option is to start with the myRIO FPGA sample project, add and remove components as needed and then build your bitfile.  Any registers (LV FPGA controls / indicators) you don't modify will still work with the Advanced IO VIs and Express VIs.  In order to use the new bitfile (FPGA Personality) you'll need to update the Open FPGA VI Reference in myRIO v1.1 Open.vi (LabVIEW 2013\vi.lib\myRIO\Common\Instrument Driver Framework\myRIO v1.0\myRIO v1.1 Open.vi).
    After doing this any time you use a myRIO Express VI or Advanced IO VI it will use your custom bitfile.  Any peripheral channels you've left in place will continue to work.  Any channels you've removed will still show up in the VIs, but will not work (they will probably throw errors at runtime) and any new channels you added will not show up in the VIs.  For new channels you'll need to use the FPGA Read / Write nodes to read and write the configuration and data register you created in the FPGA personality.  These changes will persist on that computer until you change the Open FPGA VI Reference back to the original bitfile.
    Let us know if you have questions about any of this.
    Thanks!
    -Sam K
    LabVIEW Hacker
    Join / Follow the LabVIEW Hacker Group on google+

  • Best practice for building extra navigation bar?

    I've been away from Captivate for a few years.
    What's the best method to build this navigation system (shown below) with on states, over states? The Captivate nav bar will appear at bottom.
    The menu UI will be repurposed across several lessons and units.
    I prefer to keep it in Captivate, but could use Flash if needed.
    Disappointed that Master slides do not include buttons.
    Use custom buttons in a Template?
    Or is a Flash widget the best method? How to handle the coding?
    Thanks SO much for your suggestions.

    Apparently I forgot to mention the buttons widget. It is a static widget and can be used on a master slide. It doesn't have all functionalities of the normal buttons, and you are limited about its layout but navigation is within its dropdown list with possible actions.
    I couldn't detect which version you are using? In CP5.0 this button comes only as a static widget (Buttons) and has a pausing point at about 10secs (you cannot change this pausing point). In CP 5.5 it comes in a static (you need this) and an interactive (you cannot use that on master slide) version. They do not have a pausing point. If you want the static button widget with a pausing point, you can download a version from my blog:
    What I (dis)like in CP65.5

  • Best Practices for creating PDFs using PLPDF?

    Does anyone have any suggestions for Best Practices in making PDF files using PLPDF?
    I have been using it for about a month now, and the best that I have come up with is to use MS Access to prototype the layout of a report. Once I have all the graphics areas and text areas lined up how I would want them, I then write PLSQL code to create a procedure which is called from an HTMLDB page. MS Access is handy in that it provides the XY coordinates for each text area and graphics area. It also provides the dimensions of the respective cells. So long as I call plpdf.Init('P', 'in', 'letter') at the beginning of the procedure, both my MS Access prototype and my plpdf code are both using inches - this makes the translation relatively easy.
    Has anybody found anything else easier/better?
    Regards,

    You can make it happen by creating a private connection for 40 users by capi script and when creating portlet select 2nd option in Users Logged in section. In this the portlet uses there own private connection every time user logs in.
    So that it won't ask for password.
    Another thing is there is an option of entering password or not in ASC in discoverer section, if your version 10.1.2.2. Let me know if you need more information
    thnaks
    kiran

  • SAP Best Practices for Building construction industry

    Hi All:
    Is there any best practices available in the building/house construction industry? Can you please guide me through that?
    Thank you.
    Regards,
    - Rohan

    Yes they do
    Look here:
    http://www.simplysap.com/sap-news/sap-articles/sap-adds-60-offerings-family-of-sap-best-practices.htm
    http://www.sap.com/industries/eng_construct/index.epx
    http://download.sap.com/download.epd?context=D6B5CC86EFFB6EF10CE24BDC2B076371A3E006D336E32EFF63C3CD11CF5450FDA274E617019330E191ABE803C04F532DCFB4A0F8A50E3F32

  • Best practice for modelling rediects using the threat modelling tool

    I'm in the process of modelling systems using the threat modelling tool.
    There services in question do a lot of redirecting and handing off to one another on the client side, including things like ACS and identify providers.
    If Web App A redirects to Web App B what is the best way to draw this?
    1) App A (process) > HTTPs redirect > browser > request > App B (process) or 
    2) Can I just model it as HTTPS from A to B?
    Obviously 2 simplifies diagrams hugely , but does that then exclude a range of potential threats or does the tool cater for this implicitly?

    Storing documents outside the web root and using
    <cfcontent> to push their contents to the users is the most
    secure method.
    Putting the documents in a subdirectory of the web root and
    securing that directory with an Application.cfm will only protect
    .cfm and .cfc files (as that's the only time that CF is involved in
    the request). That is, unless you configure CF to handle every
    request.
    The virtual directory is no safer than putting the documents
    in a subdirectory. The links to your documents are still going to
    look like:
    http://www.mysite.com/virtualdirectory/myfile.pdf
    Users won't need to log in to access these documents.
    <cfcontent> or configuring CF to handle every request
    is the only way to ensure users have to log in before accessing
    non-CF files. Unless you want to use web-server
    authentication.

  • FAQ: Are there best practices for building projects within the 20 page/state limit?

    The 20 page/state limit in Flash Catalyst is there to prevent Catalyst (and your finished application) from running slowly. You can however build efficient applications that have more than 20 states by using custom components. Custom components can contain states as well; so by creating an app that has several states, and using custom components that have states, you can get more unique views of your app while keeping it efficiently built.
    Try this:
    1. Select some of your arwork where you need more states. Right click and choose "Convert to Custom Component"
    2. Double-click to edit the custom component. Note that you can now create states in the custom component. Try creating a few states here.
    3. To exit editing the component, double click a blank area on the artboard.
    4. If you try creating an "On click transition to state" interaction now you will see that you can choose from both the states of the application as well as the states of the custom component.
    Answered by: Ty Voliter. See entire discussion.
    More help:
    Video tutorial on custom components
    Video/demo discussing the benefits of "pushing interactivity down" into custom components, by Ian Giblin @ MAX 2009
    (jump to the 11:15 mark, and watch through to about 20:30)
    Another forum post by Ty:
    Here's an ASCII diagram to illustrate one way of pushing application or top-level pages/states down into a custom component:
    Before:
    State1     State2     State3     State4     State5     State6     State7...
    After (project refactored to push three top-level states down into a custom component):
    State1     State2     State3      State7...
                        |
      Custom Component
    State4     State5     State6
    For some projects this can be an inconvenient workaround, and for others it can really clean things up by reducing complexity. If you have several top-level pages in your app that are completely different than other pages (for example, they don't share any objects with the other states) than pushing these down into a custom component makes things a lot more manageable in Catalyst. The layers panel, for example, shows all objects across all states-- this is useful when your states share many objects. If however, your states don't share a lot of objects, the layers panel can get a bit unmanageable. Refactoring into a custom component allows you to fix this by grouping content into a container.

    The 20 page/state limit in Flash Catalyst is there to prevent Catalyst (and your finished application) from running slowly. You can however build efficient applications that have more than 20 states by using custom components. Custom components can contain states as well; so by creating an app that has several states, and using custom components that have states, you can get more unique views of your app while keeping it efficiently built.
    Try this:
    1. Select some of your arwork where you need more states. Right click and choose "Convert to Custom Component"
    2. Double-click to edit the custom component. Note that you can now create states in the custom component. Try creating a few states here.
    3. To exit editing the component, double click a blank area on the artboard.
    4. If you try creating an "On click transition to state" interaction now you will see that you can choose from both the states of the application as well as the states of the custom component.
    Answered by: Ty Voliter. See entire discussion.
    More help:
    Video tutorial on custom components
    Video/demo discussing the benefits of "pushing interactivity down" into custom components, by Ian Giblin @ MAX 2009
    (jump to the 11:15 mark, and watch through to about 20:30)
    Another forum post by Ty:
    Here's an ASCII diagram to illustrate one way of pushing application or top-level pages/states down into a custom component:
    Before:
    State1     State2     State3     State4     State5     State6     State7...
    After (project refactored to push three top-level states down into a custom component):
    State1     State2     State3      State7...
                        |
      Custom Component
    State4     State5     State6
    For some projects this can be an inconvenient workaround, and for others it can really clean things up by reducing complexity. If you have several top-level pages in your app that are completely different than other pages (for example, they don't share any objects with the other states) than pushing these down into a custom component makes things a lot more manageable in Catalyst. The layers panel, for example, shows all objects across all states-- this is useful when your states share many objects. If however, your states don't share a lot of objects, the layers panel can get a bit unmanageable. Refactoring into a custom component allows you to fix this by grouping content into a container.

  • Best practice for building OLAP cubes??

    Hi All,
    I have to build about 10 cubes as minimum for 50 GB database that share some dimensions, these cubes for 6 business areas.
    I want to know whether to build all cubes on one analytical workspace or what??
    Regards,
    Gado

    If the cubes are going to share dimensions, then yes I would recommend putting them all in the same analytic workspace.

  • Is there a list of best practices for Azure Cloud Services?

    Hi all;
    I was talking with a Sql Server expert today and learned that Azure Sql Server can take up to a minute to respond to a query that normally takes a fraction of a second. This is one of those things where it's really valuable to learn it when architecting as
    opposed to when we go live.
    Cloud Services are not Sql Server (obviously) but that led to the question - Is there a list of best practices for Azure Cloud Services? If so, what are they?
    We will be placing the cloud services in multiple datacenters and using traffic manager to point people to the right one. The cloud service will set between an IMAP client & server, pretending to be the mail client to the server, and the server to the client.
    Mostly it will pass all requests & responses across from one to the other.
    thanks - dave
    What we did for the last 6 months -
    Made the world's coolest reporting & docgen system even more amazing

    hi dave,
    >>Cloud Services are not Sql Server (obviously) but that led to the question - Is there a list of best practices for Azure Cloud Services? If so, what are they?
    For this issue, I have collected some blogs and document about best practices for azure cloud service, you can view them, but I am not sure they are your need.
    http://msdn.microsoft.com/en-us/library/azure/xx130451.aspx
    http://gauravmantri.com/2013/01/11/some-best-practices-for-building-windows-azure-cloud-applications/
    http://www.hanselman.com/blog/CloudPowerHowToScaleAzureWebsitesGloballyWithTrafficManager.aspx
    http://msdn.microsoft.com/en-us/library/azure/jj717232.aspxhttp://azure.microsoft.com/en-us/documentation/articles/best-practices-performance/
    >>The cloud service will set between an IMAP client & server, pretending to be the mail client to the server, and the server to the client. Mostly it will pass all requests & responses across from one to the other.
    For your scenarioes, If you'd like to communicate with each instances, I recommend you refer to this document (
    http://msdn.microsoft.com/en-us/library/azure/hh180158.aspx ). And generally, if we want connect the client to server on Azure, the service bus is a good choice (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-multi-tier-app-using-service-bus-queues/
    If I misunderstood, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What is the Best practice for ceramic industry?

    Dear All;
    i would like to ask two questions:
    1- which manufacturing category (process or discrete) fit ceramic industry?
    2- what is the Best practice for ceramic industry?
    please note from the below link
    [https://websmp103.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000409682008E ]
    i recognized that ceramic industry is under category called building material which in turn under mill product and mining
    but there is no best practices for building material or even mill product and only fabricated meta and mining best practices is available.
    thanks in advance

    Hi,
    I understand that you refer to production of ceramic tiles. The solution for PP was process, with these setps: raw materials preparation (glazes and frits), dry pressing (I don't know extrusion process), glazing, firing (single fire), sorting and packing. In Spain, usually are All-in-one solutions (R/3 o ECC solutions). Perhaps the production of decors have fast firing and additional processes.
    In my opinion, the curiosity is in batch determination in SD, that you must determine in sales order because builders want that the order will be homogeneus in tone and caliber, and he/she can split the order in diferents deliveries. You must think that batch is tone (diferents colours in firing and so on) and in caliber.
    I hope this helps you
    Regards,
    Eduardo

  • Best practice for standard security role

    Hi, I'd like to know which is the best practice for standard role use, some people tell me that a standard role should never be used, that a copy must be made and assign the users to the copy, but then, why should SAP bother creating the standard role?

    They are provided as a template for you, and you can copy them into a different namespace and make changes there before generating the profiles and authorizations.
    Why you should use a copy of them is because SAP will also update them sometimes. If transactions change in the standard menues with SP's and upgrades, then you will find them in transaction SU25.
    If you do a search on "standard AND roles" in the SDN then you will also find more detailed infos and opinions on the use of them.
    Cheers,
    Julius

  • JSF - Best Practice For Using Managed Bean

    I want to discuss what is the best practice for managed bean usage, especially using session scope or request scope to build database driven pages
    ---- Session Bean ----
    - In the book Core Java Server Faces, the author mentioned that most of the cases session bean should be used, unless the processing is passed on to other handler. Since JSF can store the state on client side, i think storing everything in session is not a big memory concern. (can some expert confirm this is true?) Session objects are easy to manage and states can be shared across the pages. It can make programming easy.
    In the case of a page binded to a resultset, the bean usually helds a java.util.List object for the result, which is intialized in the constructor by query the database first. However, this approach has a problem: when user navigates to other page and comes back, the data is not refreshed. You can of course solve the problem by issuing query everytime in your getXXX method. But you need to be very careful that you don't bind this XXX property too many times. In the case of querying in getXXX, setXXX is also tricky as you don't have a member to set. You usually don't want to persist the resultset changes in the setXXX as the changes may not be final, in stead, you want to handle in the actionlistener (like a save(actionevent)).
    I would glad to see your thought on this.
    --- Request Bean ---
    request bean is initialized everytime a reuqest is made. It sometimes drove me nuts because JSF seems not to be every consistent in updating model values. Suppose you have a page showing parent-children a list of records from database, and you also allow user to change directly on the children. if I hbind the parent to a bean called #{Parent} and you bind the children to ADF table (value="#{Parent.children}" var="rowValue". If I set Parent as a request scope, the setChildren method is never called when I submit the form. Not sure if this is just for ADF or it is JSF problem. But if you change the bean to session scope, everything works fine.
    I believe JSF doesn't update the bindings for all component attributes. It only update the input component value binding. Some one please verify this is true.
    In many cases, i found request bean is very hard to work with if there are lots of updates. (I have lots of trouble with update the binding value for rendered attributes).
    However, request bean is working fine for read only pages and simple binded forms. It definitely frees up memory quicker than session bean.
    ----- any comments or opinions are welcome!!! ------

    I think it should be either Option 2 or Option 3.
    Option 2 would be necessary if the bean data depends on some request parameters.
    (Example: Getting customer bean for a particular customer id)
    Otherwise Option 3 seems the reasonable approach.
    But, I am also pondering on this issue. The above are just my initial thoughts.

Maybe you are looking for

  • Ran Bootcamp / installed WinXP SP2 / Have some questions

    I bought an iMAC for the stability and security of it. I, however use Embroidery and Quilting software that will run on WINDOWS only. So, I had to run bootcamp or lose the use of over $5,000 in software! Anyway... there are times I will need to updat

  • Store Very Large Numbers

    Hello, I am trying to find some info about how to store very large numbers with like 2000 digits or even more and do calculations on them. Does anyone have any info or links about this ?? Thanks.

  • How to open pdf from a dvd

    My laptop is an HP Pavilion dv6.  How do I get access to pdf from a purchased dvd guitar lesson(s)? It says when i insert the dvd my computor will show me how.  I have put in the latest version of Adobe Acrobat, which is the required program it said

  • Export PDF with option dialog

    Hi, When I use 'kAISaveDocumentAsAction' to play action event, the pdf option dialog shows up, as in the following piece of code: result = sAIActionManager->AIActionSetString( valueParameterBlock, kAISaveDocumentAsNameKey, szPDFullFileName ); //file

  • Calling an MFL business service from a WSDL proxy service

    Hi, I'm using Service Bus v2.6, and trying to call an MFL business service from a wsdl based proxy service. I have done the following so far: - Define an MFL-based business service that writes MFL messages to a JMS queue and reads reply messages off