This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Cannot change TitledBorder from Resource Bundle to Plain Text | ||
---|---|---|---|
Product: | guibuilder | Reporter: | redjaguar |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | NEW --- | ||
Severity: | normal | CC: | redjaguar |
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Screen cap demonstrating bug. |
Description
redjaguar
2017-05-26 00:03:09 UTC
Created attachment 164409 [details]
Screen cap demonstrating bug.
Screen capture demonstrating the bug.
Thanks for a nice demonstration of the bug. Yes, it is a bug, but it has an easy workaround. I can see you likely develop your UI as part of a NetBeans module (platform application), is that right? GUI forms created for platform app have the Automatic Internationalization feature turned on by default. That's why it looks like it insists on using resource bundles. In fact for production software it is quite convenient -- you get all texts in one properties file for translations automatically, instead of bothering with hard coded strings in java code. Anyway, the Automatic Internationalization can be easily turned off and on for the whole GUI form, which will automatically move all texts to plain strings in java code (going off) and then back to resource bundles (on again). So you don't have to do that one by one manually, it can be done once for all, including border titles. The Automatic Internationalization setting is available when you select the root node in the GUI navigator tree, then find it under the Resources and Internationalization section. There is also a way to get just the titled border text to plain string as you tried: when you switch the title property editor to "Plain text", note the "Do not internationalize this string" checkbox at the bottom. Checking that will exclude the property from the automatic internationalization completely. This can be used for exceptions when you otherwise want to use the resource bundles on other places. If you don't want it anywhere, turn it off via the root node property. What you tried on the video should also work, the "Do not..." checkbox should not be necessary. This is a bug. But hopefully the above description helps you. |