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 58689

Summary: button count does not refresh when adding new radio buttons in a buttonGroup
Product: guibuilder Reporter: Max Sauer <msauer>
Component: CodeAssignee: issues@guibuilder <issues>
Status: VERIFIED FIXED    
Severity: blocker CC: carentrica
Priority: P4    
Version: 5.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Max Sauer 2005-05-09 10:46:07 UTC
NB 4.2dev 200505081800
/form_prototype/20050509

When adding new RadioButtons in a buttonGroup, the button count property does
not refresh (equals to zero no matter how many button are in that group).

Steps to reproduce this:
------------------------
1)set up a projetx->javaapp
2)add a new jFrame
3)add a buttongroup
4)add some radio buttons and assign them to the above mentioned group via
properties window
5)check the group property buttonCount in the property window
Comment 1 Jan Stola 2005-05-12 10:35:33 UTC
Occurs also in trunk build.
Comment 2 Tomas Pavek 2006-08-10 10:13:48 UTC
*** Issue 82347 has been marked as a duplicate of this issue. ***
Comment 3 Petr Dvorak 2008-03-18 13:54:55 UTC
Issue is still not fixed in:

Product Version: NetBeans IDE Dev (Build 200803170003)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.24-12-generic running on i386; UTF-8; en_US (nb)

It holds for all types of button, also for JCheckBox. It is not so important, but maybe it would be better if the
property was removed from the properties window, as it is totally unimportant there (you cannot edit it).

It would be nice if there was a property called "Assigned buttons" instead which would display a list of all assigned
buttons when clicked an ellipsis button (it could also allow some management, like adding/removing buttons to/from the
group).
Comment 4 Jan Stola 2008-05-19 15:12:44 UTC
*** Issue 135187 has been marked as a duplicate of this issue. ***
Comment 5 Jiri Vagner 2008-05-28 13:14:25 UTC
Fixed

http://hg.netbeans.org/main/rev/af3ca5c443e8
Comment 6 Jana Maleckova 2008-05-29 08:23:09 UTC
verified on 

Product Version: NetBeans IDE Dev (Build 20080529012945)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)

carentrica, could you verified it as well ?