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 138489 - Remove the default text property given to TextFields
Summary: Remove the default text property given to TextFields
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
: 187236 (view as bug list)
Depends on:
Reported: 2008-06-27 14:29 UTC by osbald
Modified: 2010-06-07 16:52 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description osbald 2008-06-27 14:29:35 UTC
It'd be preferable whenever adding a TextComponent (JTextField) to a form not to have the text property set to the to
its generated variable name. When would this ever be useful to a form developer. The GUI builder forces me to go back
and blank it out every time (unlike JTextArea say). Could just about understand it was a quick-and-dirty way to annotate
fields, but wouldn't that be better achieved by say a layered decorator (glasspane) that didn't force us to keep
correcting the widgets defaults. Please consider defaulting this to the empty string.
Comment 1 Tomas Pavek 2010-06-07 16:31:30 UTC
*** Bug 187236 has been marked as a duplicate of this bug. ***
Comment 2 Tomas Pavek 2010-06-07 16:52:40 UTC
Getting rid of default text in text field makes sense, however we need another way to give it a reasonable default size (otherwise it would be just a few pixels wide and look strange when being added from palette). Perhaps we can set columns property instead (like we do for text area).