1. Start IDE.
2. Rightclick "Java DB" node and choose "Create Database...".
3. Select "Database Location" field and try to change location.
Result: The "Database Location" field look like editable, but user can edit it only by clicking "Properties" button and
then change location in "Java DB Properties" dialog. This field shouldn't look like editable or it should be possible to
edit location in "Create Java DB Database" dialog.
the location is not intended to be edited.
Note, this is the way the dialog was originally designed.
To edit the location, use Java DB Properties. Also it wouldn't make sense to allow editing in 2 places
I think Roman's point was that it shouldn't *look* editable if it's not. Make it a label instead of a text field, for
Even though a textfield appears, no cursor can be displayed. That's not the issue. A textfield just shouldn't be used
for a non-editable field.
But, the real problem is the following:
Since a textfield is used and the textfield is readonly, if a long path is specified for the database location then
the path is truncated - the beginning of the path is scrolled to the beginning and is not visible.
If a label is used instead for the path then the dialog will expand to fit the full path
Instead of allowing the dialog to resize to show the database location, I will add a tooltip to the location label
This seems OK, but if I were a user I would like to be able to change the database location from this dialog. But that's a separate enhancement...
If you click the Properties button in the Create Database dialog, the the database location can be updated.
Verified with build 081216.
Integrated into 'main-golden', will be available in build *200812180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: John Baker <firstname.lastname@example.org>
Log: #155342 use label instead of textfield for read-only value and add tooltip