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.
Created attachment 110883 [details] source code I can't figure out why my code got corrupted when I tried to adjust the properties of btnPrevious (the button with << as a label. The problem seems to be that the code behind form is not consistently reverted when the design view is updated, leading to compilation errors, which I don't need to debug because NetBeans should be taking care of it, in principle. private void btnNextActionPerformed(java.awt.event.ActionEvent evt) { }
This bug has nothing to do with GUI Builder. You simply forgot one closing brace (i.e., }) in the body of the previous method (i.e., in btnPreviousKeyPressed).
Thank you, would it be possible to check whether NetBeans can pre-empt such errors clearly because it did not occur to me, unfortunately.
The root of the problem was that you typed incorrect code (i.e., you forgot to type a closing brace or you deleted it accidentally). There is no way to prevent you from doing that.
(In reply to comment #3) > The root of the problem was that you typed incorrect code (i.e., you forgot to > type a closing brace or you deleted it accidentally). There is no way to > prevent you from doing that. Can the IDE detect these bracketing problems? I believe Eclipse IDE has syntax checking mechanisms that display specific errors rather than a general compilation problem. (In reply to comment #0) > Created an attachment (id=110883) [details] > source code > > I can't figure out why my code got corrupted when I tried to adjust the > properties of btnPrevious (the button with << as a label. > > The problem seems to be that the code behind form is not consistently reverted > when the design view is updated, leading to compilation errors, which I don't > need to debug because NetBeans should be taking care of it, in principle. > > private void btnNextActionPerformed(java.awt.event.ActionEvent evt) { > > }