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 108680 - Attempts to set value of bound property should be handled better
Summary: Attempts to set value of bound property should be handled better
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Binding (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-02 17:49 UTC by Jana Maleckova
Modified: 2008-05-05 11:40 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-07-02 17:49:05 UTC
Product Version: NetBeans IDE Dev (Build 200707012149) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)

Description:
============
have JDA project
1. insert e.g. two buttons in mainPanel
2. bind text property of button1 to button2 -> invoke contextual menu on button2 -> bind -> text -> string
3. do reload form (ctrl+shift+r)
button2 losts text in design but only here because text property contains bounded text in property sheet and when
application is run, button2 has correct text as well.
Comment 1 Jana Maleckova 2007-07-25 10:33:10 UTC
Product Version: NetBeans IDE Dev (Build 070725) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows
XP version 5.1 running on x86; Cp1252; en_GB (nb)

Description:
============
now this issue happens after these steps

have JDA project
1. insert e.g. two buttons in mainPanel
2. bind text property of button1 to button2 -> invoke contextual menu on button2 -> bind -> text -> string
3. change text property of jButton2 manually in property sheet
4. do reload form (ctrl+shift+r)
buttons lost text in design and in runtime as well
Comment 2 Jan Stola 2007-07-25 10:57:56 UTC
The root of the problem is that the text of button2 is set in two ways - via binding property and via normal property. 
We should destroy the binding or/and warn the user when some normal property is modified when the corresponding binding 
property is set.