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 236335

Summary: IllegalArgumentException: bad position: 18
Product: contrib Reporter: skygo <skygo>
Component: JMXAssignee: Jean-francois Denise <jfdenise>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 204114
Attachments: stacktrace

Description skygo 2013-09-24 17:42:45 UTC
Build: NetBeans IDE Dev (Build 201309191137)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Windows 8

User Comments:
skygo: This occurs during the tutorial  Adding Java Management Extensions (JMX) Instrumentation to a Java Application.

At the time I copy paste attribue Name to the attribute table cell.
If I type everything is ok




Stacktrace: 
java.lang.IllegalArgumentException: bad position: 18
   at javax.swing.text.JTextComponent.setCaretPosition(JTextComponent.java:1678)
   at org.netbeans.modules.jmx.mbeanwizard.listener.AttributeTextFieldKeyListener.keyTyped(AttributeTextFieldKeyListener.java:102)
   at java.awt.Component.processKeyEvent(Component.java:6460)
   at javax.swing.JComponent.processKeyEvent(JComponent.java:2828)
   at java.awt.Component.processEvent(Component.java:6282)
   at java.awt.Container.processEvent(Container.java:2229)
Comment 1 skygo 2013-09-24 17:42:47 UTC
Created attachment 140421 [details]
stacktrace