Home
> Uncategorized > NetBeans Platform – how to customize the title bar and remove datestamp
NetBeans Platform – how to customize the title bar and remove datestamp
Problem:
When you create a NetBeans Platform project, the title bar includes a datestamp/version identifier which is visually distracting. You’d like to customize the title bar.
Right click on the project node, and choose Find. In the dialog box, search for {0}.
In the results, double click on the first Bundle.properties, in branding/modules…

Replace the lines with {0} with what you desire the title to be:


relaunch the program.

Updated title bar
You can also change the title at runtime with the following code:
Frame f = WindowManager.getDefault().getMainWindow(); f.setTitle("My title");
These are modified instructions based off of a thread found here. See instructions on how to change the versioning number, if that’s what you desire, here.
EDIT:
If you are attempting to change the window title programmatically from an Installer instance, you’ll find that this doesn’t work. The problem is that you are changing the title too early in the lifecycle. Instead, you need to do the following:
// Only change the window title when all the UI components are fully loaded. WindowManager.getDefault().invokeWhenUIReady(new Runnable() { @Override public void run() { WindowManager.getDefault().getMainWindow().setTitle(windowTitle); } });
Categories: Uncategorized
java, netbeans, netbeans platform
or you could right click the suite, select branding and then the resource tab. Search for CTL_Main and do the change from there.
Thanks for the information. Always looking to learn more about NetBeans Platform.
Pretty great post. I simply stumbled upon your blog and wanted to mention
that I’ve really loved surfing around your weblog posts. After all I’ll be
subscribing to your feed and I’m hoping you write again soon!
I’ll immediately grab your rss feed as I can’t in finding your e-mail subscription link or
e-newsletter service. Do you’ve any? Kindly permit me realize in order that I may subscribe. Thanks.
There’s certainly a great deal to learn about this topic.
I love all of the points you made.
can i change color of backgroud that contains title bar ?