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 202332 - ActionPerformed
Summary: ActionPerformed
Status: RESOLVED INCOMPLETE
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Binding (show other bugs)
Version: 7.0.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-19 19:41 UTC by jon80
Modified: 2011-09-27 19:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
source code (5.75 MB, application/octet-stream)
2011-09-19 19:41 UTC, jon80
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jon80 2011-09-19 19:41:06 UTC
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) {                                        

    }
Comment 1 Jan Stola 2011-09-27 13:58:42 UTC
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).
Comment 2 jon80 2011-09-27 14:49:34 UTC
Thank you, would it be possible to check whether NetBeans can pre-empt such errors clearly because it did not occur to me, unfortunately.
Comment 3 Jan Stola 2011-09-27 15:33:54 UTC
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.
Comment 4 jon80 2011-09-27 19:15:47 UTC
(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) {          
> 
>     }