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.
Build: NetBeans IDE 8.0 (Build 201403101706) VM: OpenJDK 64-Bit Server VM, 24.45-b08, OpenJDK Runtime Environment, 1.7.0_51-b00 OS: Linux User Comments: nvamelichev: Opened Matisse palette customizer. Added a couple of java beans to Matisse palette under the "Components" category, then dragged one of the components above the "Choose Component" item Stacktrace: java.lang.IllegalArgumentException: permutation of incorrect length: 10 rather than 9 at org.openide.loaders.DataFolder$Index.reorder(DataFolder.java:969) at org.openide.explorer.view.TreeViewDropSupport.performReorder(TreeViewDropSupport.java:584) at org.openide.explorer.view.TreeViewDropSupport.drop(TreeViewDropSupport.java:697) at java.awt.dnd.DropTarget.drop(DropTarget.java:450) at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:537) at sun.awt.X11.XDropTargetContextPeer.processDropMessage(XDropTargetContextPeer.java:184)
Created attachment 146671 [details] stacktrace
Can you please be more specific about the reproduction scenario? What do you mean by "Components" category and the "Choose Component"? I don't see those in the palette manager. Can you add a screenshot or something to clarify it and reopen? Thanks
Precise steps to reproduce, now with correct category name: 1. Open any form in Matisse. 2. Right-click the palette, choose "Palette Manager...". 3. In the "Palette Content:" tree, add some components to the "Beans" category using the "Add from Project..." button. 4. Click Close. 5. Try to drag any newly added bean in the "Beans" palette category before the "Choose Bean" item. I tried several times, but it now does not reproduce. Maybe this bug is highly time-dependent (e.g. DataFolder does not yet know about the newly added items).