netcrystals opened a new issue, #5183:
URL: https://github.com/apache/netbeans/issues/5183

   ### Apache NetBeans version
   
   Apache NetBeans 16
   
   ### What happened
   
   I found this bug in BN 14,15 and 16.
   
   What happened: Matisse does not work properly. Adding a JButton to a simple 
form does not allow my anymore to add actions methods.
   What I expected: I expected that it is possible to right click a JButton and 
add an actionMethod.
   What went wrong: Method not created.
   
   ### How to reproduce
   
   Simply open a project and add a JPanel to the project. Open the JPanel in 
Design view. Add an element, like a JButton to the JPanel. Right click the 
JButton and select Events->Action->actionPerformed. The method is not created.
   Moreover I realized that my old projects opeend with 
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 10
   
   ### JDK
   
   JDK18.0.1.1
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   It seems as if the Guards do not work correctly or are not parsed correctly. 
An example...
   
    // <editor-fold defaultstate="collapsed" desc=" Generated Code 
">//GEN-BEGIN:initComponents
       private void initComponents() {
           
           javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
           this.setLayout(layout);
           layout.setHorizontalGroup(
                   
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                           .addGap(0, 400, Short.MAX_VALUE)
           );
           layout.setVerticalGroup(
                   
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                           .addGap(0, 300, Short.MAX_VALUE)
           );
       }
       // </editor-fold>//GEN-END:initComponents
   
   I can see the guards meta-info "<editor-fold>" that should be used to guard 
and protect the method.
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to