-
Notifications
You must be signed in to change notification settings - Fork 30
Branding
Into the "Specification panel, all the properties could have an explanation about the impact they have at the bottom of the panel
Actually those messages were coded inside the class files and could not be modified easily.
With NetBeans, there is a way to externalize a string message by using the attribute @Messages
of the org.openide.util.NbBundle.Messages class.
This attribute generate a Bundle.properties
file for each package and create a pair of key/value element for each message to display. Then in your code, you use the key instead of your string.
Using the Branding functionality of NetBeans will help you if you want to expand those properties messages.
Basically you could modify only one (or many) messages without going inside the code. You can just change one message and the Branding functionality will create a new Bundle.properties
file that will contain the new key/value. This Bundle.properties
file will contain one, many or all the key/value and will be use first in the replacement of the variables by your message.
- Open the jdemetra-app project in NetBeans
- Right-Click on the NbDemetra – Branding project
and click on Branding… menu - Select Resource Bundles tab
- You can search for a key in the search textbox or double click on the
Bundle.properties
to access the different key/value variables.
- Double-click on the key/value you want to modifie and write the new value you want to see.