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

NPE in design view when displaying menu bar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.0
    • None
    • guibuilder - Code
    • Java: 14.0.1; OpenJDK 64-Bit Server VM 14.0.1+14
      Runtime: OpenJDK Runtime Environment 14.0.1+14
      System: Mac OS X version 10.15.6 running on x86_64; UTF-8; en_GB (nb)

    Description

      The GUI builder design view fails to render a menu bar

       

      steps to reproduce:

       

      Click 'File' -> 'New Project' and create a Maven Java application

      In the project click 'new' --> 'JFrame Form'

      In the form click 'Add From Pallete' -> 'Swing Menues' -> "Menu Bar"

      Error displayed:

      The following exception has been thrown during painting of the form. Use the Navigator window to fix or remove the problematic component.

      java.lang.NullPointerException

       

      see attached screenshot

       

       

       

      Attachments

        1. menu render failure.png
          348 kB
          Steve Mellor

        Activity

          People

            Unassigned Unassigned
            objectivetester Steve Mellor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: