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.
1. run netbeans (last build should do) 2. create simple JFrame 3. add JComboBox 4. try to change its selectedIndex property to say 3 Out comes this exception: java.lang.reflect.InvocationTargetException: null java.lang.reflect.InvocationTargetException: java.lang.IllegalArgumentException: setSelectedIndex: 5 out of bounds <---- here the number raises as you change property at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:452) at java.lang.reflect.Method.invoke(Native Method) at org.netbeans.modules.form.RADProperty.setTargetValue(RADProperty.java:98) at org.netbeans.modules.form.FormProperty.setValue(FormProperty.java:196) at org.netbeans.modules.form.RADProperty.setValue(RADProperty.java:108) at org.openide.explorer.propertysheet.PropertyPanel$SimpleModel.setValue(PropertyPa nel.java:1117) at org.openide.explorer.propertysheet.PropertyPanel$EditorListener.propertyChange(P ropertyPanel.java:1354) at org.openide.util.WeakListener$PropertyChange.propertyChange(WeakListener.java:30 7) at org.netbeans.modules.form.FormPropertyEditor.firePropertyChange(FormPropertyEdit or.java:352) at org.netbeans.modules.form.FormPropertyEditor.propertyChange(FormPropertyEditor.j ava:83) at java.beans.PropertyEditorSupport.firePropertyChange(PropertyEditorSupport.java:2 39) at java.beans.PropertyEditorSupport.setValue(PropertyEditorSupport.java:53) at sun.beans.editors.IntEditor.setAsText(IntEditor.java:24) at org.netbeans.modules.form.FormPropertyEditor.setAsText(FormPropertyEditor.java:1 86) at org.openide.explorer.propertysheet.PropertyPanel.setAsText(PropertyPanel.java:99 8) at org.openide.explorer.propertysheet.PropertyPanel.access$1000(PropertyPanel.java: 39) at org.openide.explorer.propertysheet.PropertyPanel$WriteComponentListener.changeVa lue(PropertyPanel.java:1213) at org.openide.explorer.propertysheet.PropertyPanel$WriteComponentListener.actionPe rformed(PropertyPanel.java:1174) at javax.swing.JTextField.fireActionPerformed(JTextField.java:421) at javax.swing.JTextField.postActionEvent(JTextField.java:586) at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:696) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1384) at javax.swing.JComponent.processKeyBinding(JComponent.java:2078) at javax.swing.JComponent.processKeyBindings(JComponent.java:2104) at javax.swing.JComponent.processKeyEvent(JComponent.java:2041) at java.awt.Component.processEvent(Component.java:3553) at java.awt.Container.processEvent(Container.java:1164) at java.awt.Component.dispatchEventImpl(Component.java:2593) at java.awt.Container.dispatchEventImpl(Container.java:1213) at java.awt.Component.dispatchEvent(Component.java:2497) at java.awt.LightweightDispatcher.processKeyEvent(Container.java:2155) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2135) at java.awt.Container.dispatchEventImpl(Container.java:1200) at java.awt.Window.dispatchEventImpl(Window.java:914) at java.awt.Component.dispatchEvent(Component.java:2497) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:339) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:1 31) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
maybe this one is duplicate of #9631.
[nb_dev](20010626), [jdk1.3.1](rc1) It seems as problem arised after PropertySheet changes. Until build 207(new PropertySheet) arise "only" Dialog "Exception in setter method property: selectedIndex.
::: ►►► absolutely reassigned ◄◄◄
::: absolutely started
InvocationTargetException is caught, "USER" annotated and thrown again. ::: fixed in dev only
This one is not duplicate of #9631, even if they are very similar. #9631 pointed out on the issue that there was not the functionality in openide to show user dialog with localized message. Now this functionality exists, but we have to annotate our exception. That was problem of this issue (#13113), the annotating was missing.
verified in [nb_dev](20010731)
Resolved for 3.3.x or earlier, no new info since then -> closing.