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 113231 - I18N - templates columns cannot be resized
Summary: I18N - templates columns cannot be resized
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: I18N
Depends on: 113227
Blocks:
  Show dependency tree
 
Reported: 2007-08-20 18:07 UTC by Ken Frank
Modified: 2007-11-05 13:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-08-20 18:07:24 UTC
I think this is non i18n since it happens in en locale; it was seen by us t in other locale; am on solaris, ja locale,
pseudo localized nb. (and in non pseudo localized zh locale) using 0819.

cannot resize the columns of the templates once some other language has been chosen from the dropdown -
see 113227 where it mentions that on first invocation of nb and showing the editor options template window,
that the col headers
Abbreviations, Expanded Text, Description
dont come from localized bundle, and the cols can be resized.

but after choosing some other language from the dropdown, the localized msgs do appear
but then the col headers cannot be resized anymore.
(this is part of 113227)

usually such jtable columns can be resized by dragging in between columns

in this case, it means that not all of some col names can be seen.

in the macros tab, the cols can be resized

I dont see any exceptions about this.
Comment 1 Vitezslav Stejskal 2007-08-21 10:42:44 UTC
Umm, the table columns are probably not initialized correctly for some reason.
Comment 2 Ken Frank 2007-09-21 16:37:36 UTC
when it first comes up, and the table col names are still in english, the jtable columns can be resized;
its only after choosing some other editor type, when the col names come from pseudo lcoalized,
that the column resizing cannot happen.

ken.frank@sun.com
Comment 3 Vitezslav Stejskal 2007-10-08 16:43:48 UTC
Fixed together with #113227.
Comment 4 Ken Frank 2007-10-24 19:38:33 UTC
I can resize the 2nd and 3rd cols up to the length of the whole table

but I can't resize the first column to completely show its header

and if make one of the other cols smaller, the other col besides the first is still large -
cannot resize both so that still the first one cannot be resized.

ken.frank@sun.com
Comment 5 Ken Frank 2007-10-29 22:24:51 UTC
am reopening; still the 1st column is not able to be resized enough;
even when making the middle col as small as possible.

I think its partly because the 3rd col cannot be manually resized also.

ken.frank@sun.com
Comment 6 Vitezslav Stejskal 2007-10-30 15:56:07 UTC
Ok, I removed the max width constraint for the abbrev column. Please note that the columns have min width defined, but
no max width and they all resize up to the total width of the table. I really hope that this good enough now, otherwise
we will have to put the table in a scrollpane and implement some fancy resizing logic. Which IMHO is not worth the effort.

Checking in CodeTemplatesPanel.java;
/cvs/editor/options/src/org/netbeans/modules/options/codetemplates/CodeTemplatesPanel.java,v  <--  CodeTemplatesPanel.java
new revision: 1.34; previous revision: 1.33
done
Comment 7 Ken Frank 2007-11-04 20:39:29 UTC
looks good, thanks for additional fixing of it, am verifying.

ken.frank@sun.com