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 7.0 Beta 2 (Build 201102140001) VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02-334, Java(TM) SE Runtime Environment, 1.6.0_24-b07-334-10M3326 OS: Mac OS X User Comments: GUEST: Adding a tabbed pane to a frame GUEST: Form View ---> JPanel (BorderLayout) (BUGGY PARENT) ----> JSplitPane (on center) ----> JPanel ----> JPanel ----> JPanel (on south, FlowLayout LEFT) ---> JMenuBar I try to add new JSplitPanel to 'BUGGY PARENT'. GUEST: I was inserting a new JLabel in the Form. The layout of this form is set to AbsoluteLayout. GUEST: Trying to drag n drop a JLabel into a JPanel in the Inspector view. the JPanel is layered underneath a JPanel [GridBagLayout] --> JPanel [GridBagLayout] GUEST: I had made a layout of a JPanel in the GUI builder. The root panel contained another JPanel, with some components (two JLabels and a JTextArea + JScrollPane). I selected the components of the enclosed panel in the inspector, and tried to drag them up to the root panel, with the intention of doing away with the unnecessary enclosed panel. GUEST: Added a custom component to palette. When I try to add the component to a JPanel, I get an exception. rprichard: Adding a class (extension of JPanel) from the pallet GUEST: This problem occurrs when I'm inserting a new component (JLabel, JTextField, JFormattedTextField, JButton, etc) in a JDialog with Abolute Layout, and the problem is "resolved" changing the layout to Free Layout, then insert de component, and then set Absoulte Layout again. Stacktrace: java.lang.IllegalArgumentException: illegal component position at java.awt.Container.addImpl(Container.java:1035) at java.awt.Container.add(Container.java:959) at org.netbeans.modules.form.layoutsupport.AbstractLayoutSupport.addComponentsToContainer(AbstractLayoutSupport.java:617) at org.netbeans.modules.form.layoutsupport.LayoutSupportManager.addComponentsToContainer(LayoutSupportManager.java:668) at org.netbeans.modules.form.VisualReplicator.addComponent(VisualReplicator.java:391) at org.netbeans.modules.form.VisualReplicator.updateAddedComponents(VisualReplicator.java:357)
Created attachment 107533 [details] stacktrace
I am sorry, I am not able to reproduce this issue and the attached stack trace is not sufficient to track the problem down. Are you still able to reproduce this problem? If so, could you, please, provide more details? It would be ideal to attach the problematic form (both .java and .form files) saved in the last good state and describe exact steps that lead to this issue. Thank you in advance.