Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8101791

Menu should have parameterless default Constructor

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 7u6
    • fx2.1
    • javafx
    • None

      I am using Menu with a localized label/text.

      Currently I do it this way:

      Menu menu = new Menu(null);
      menu.textProperty().bind(someProperty());

      I do it similarly with MenuItem:

      MenuItem menuItem = new MenuItem();
      menuItem.textProperty().bind(someOtherProperty());

      The need for a String in Menu's constructor is a little bit annoying here.

      I suggest you provide a default constructor with no parameters. (as you did with MenuItem, too)

            psomashe Parvathi Somashekar (Inactive)
            cschudtjfx Christian Schudt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: