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.

Bug 137149 - Unable to set values in Matisse form using ResourceBundle
Summary: Unable to set values in Matisse form using ResourceBundle
Status: RESOLVED DUPLICATE of bug 135069
Alias: None
Product: java
Classification: Unclassified
Component: I18N (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-13 07:02 UTC by David Vancouvering
Modified: 2008-06-13 08:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot of the dialog with the OK button disabled (73.43 KB, image/jpeg)
2008-06-13 07:04 UTC, David Vancouvering
Details
Screen shot of first-level dialog with fields filled in (65.68 KB, image/jpeg)
2008-06-13 07:05 UTC, David Vancouvering
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Vancouvering 2008-06-13 07:02:18 UTC
The [OK] button is always disabled when I try to select a format for the code that gets the string from the resource
bundle. 

To reproduce:

- Create a Matisse Swing form
- Create a text field
- For the tool tip property of the field, click on '...'
- Drop down and choose Resource Bundle
- Type in a bundle name and a key and value
- Click on Format... next to Code
- No matter what format you choose, the [OK] button is disable with *absolutely no explanation*

At this point I am stuck, and have no workaround.

See attached images for an example.
Comment 1 David Vancouvering 2008-06-13 07:04:13 UTC
Created attachment 62784 [details]
Screen shot of the dialog with the OK button disabled
Comment 2 David Vancouvering 2008-06-13 07:05:10 UTC
Created attachment 62785 [details]
Screen shot of first-level dialog with fields filled in
Comment 3 Jana Maleckova 2008-06-13 07:41:03 UTC
sorry David I cannot reproduce it all the time. Which build do you use ? Does the bundle exist in your project ?
I can reproduce it only in case when bundle does not exist or is in different package from form class and you just write
its path manually into bundle name textfield instead of choosing it using "Select..." button. Then the bundle file is
not validated and that's why format string could not be edited now. Is that your case ?

than simple workaround is to choose bundle using "Select..." button, fill key and value into dialog and then format
could be editable. This is known bug .. see http://www.netbeans.org/issues/show_bug.cgi?id=135069



Comment 4 David Vancouvering 2008-06-13 08:18:02 UTC
It's a build from the trunk, pulled yesterday.

Yes, that's correct, the bundle is not in the same package as the UI class.  This is a known issue with the db module
that is going to take some work to fix, and not now.
I browsed to the Resource file (what a drag, so many layers of folders and I can't just type it in), it works!  So
thanks for that tip.

Since there's a workaround, I'm downgrading the issue.  You probably want to mark this as a duplicate of 135069.
Comment 5 Jana Maleckova 2008-06-13 08:41:43 UTC
OK David, thanks for reply. I will mark this issue as duplicate of 135069

*** This issue has been marked as a duplicate of 135069 ***