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

Summary: Remove the default text property given to TextFields
Product: guibuilder Reporter: osbald <osbald>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker CC: lebedkov
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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).