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.1 Dev (Build 201106072116) VM: Java HotSpot(TM) Client VM, 21.0-b15, Java(TM) SE Runtime Environment, 1.7.0-ea-b145 OS: Linux User Comments: GUEST: probelmas al deshacer una componete jframe dentro de de una tableta asenk: 1. start IDE with fresh userdir 2. create new project 3. add JFrame Form 4. add some Swing components 5. right-click on JFrame > select Set Layout 6. click on Grid Bag L. 7. right-click on JFrame > select Set Layout 8. click on Grid L. 9. Click twice on UNDO GUEST: GUIBuilder Stacktrace: java.lang.AssertionError at org.netbeans.modules.form.layoutdesign.LayoutModel.addInterval(LayoutModel.java:322) at org.netbeans.modules.form.layoutdesign.LayoutEvent$Interval.undoIntervalRemoval(LayoutEvent.java:226) at org.netbeans.modules.form.layoutdesign.LayoutEvent$Interval.undo(LayoutEvent.java:168) at org.netbeans.modules.form.layoutdesign.LayoutModel.undo(LayoutModel.java:889) at org.netbeans.modules.form.layoutdesign.LayoutModel$LayoutUndoableEdit.undo(LayoutModel.java:948) at javax.swing.undo.CompoundEdit.undo(CompoundEdit.java:63)
Created attachment 108798 [details] stacktrace
I am sorry, I am not able to reproduce this issue (neither in the current development build nor in NetBeans 7.0.1 where it should be present according to asenk's report) and the attached stack-trace is not sufficient to track the problem down. Are you still able to reproduce it? If so, could you, please, provide _exact_ steps that lead to the exception? I tried to follow your steps but no exception was thrown. I assume that the problem is in vague description of the 4th step. The exception is thrown for some layouts only I guess.
Created attachment 113333 [details] Project that exhibits the error. 1) Open attached project and open both java files in Editor. 2) Change Form to Grid Bag Layout from Navigator 3) Change to Null Layout 4) Change to Free Design 5) Click Undo button back to Free Design again. This AssertionError happens. Product Version: NetBeans IDE 7.1 RC1 (Build 201111171527) Java: 1.7.0_01; Java HotSpot(TM) Client VM 21.1-b02 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb
Notice Issue 205139 looks the same.
*** This bug has been marked as a duplicate of bug 205319 ***