Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5063

Change "private" to "protected" modifier for event listener methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 12.1
    • None
    • guibuilder - Code
    • None
    • Product Version: Apache NetBeans IDE 12.1
      Java: 13.0.1; Eclipse OpenJ9 VM openj9-0.17.0
      Runtime: OpenJDK Runtime Environment 13.0.1+9
      System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)

    Description

      When using the form builder to generate an event listener method, the only option is the creation of
      private listener methods:

      private void handleWindowClosing(java.awt.event.WindowEvent evt) {
       // TODO add your handling code here:
       }

      At least generate the method signature using "protected" modifier to allow for inheritance/override:

      protected void handleWindowClosing(java.awt.event.WindowEvent evt) {
       // TODO add your handling code here:
       }

       

      Reported previously here: https://bz.apache.org/netbeans/show_bug.cgi?id=88254

      Attachments

        Activity

          People

            Unassigned Unassigned
            Javatlacati Ruslan Lopez Carro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: