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

SplitMenuButton and MenuButton do not display selected item

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: fx1.3
    • Fix Version/s: fx1.3.1
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      Linux

      Description

      //SplitMenuButton and MenuButton do not display selected item.

      import javafx.stage.Stage;
      import javafx.scene.Scene;
      import com.javafx.preview.control.MenuItem;
      import javafx.scene.layout.VBox;
      import javafx.stage.Stage;
      import com.javafx.preview.control.MenuButton;
      import com.javafx.preview.control.SplitMenuButton;

      Stage {
          width: 200, height: 200
          scene: Scene {
              content: [
                  VBox{
                      content: [
                          MenuButton{
                              items:[
                                  MenuItem{ text:"Item 1" },
                                  MenuItem{ text:"Item 2" },
                              ]
                          },
                          SplitMenuButton{
                              items:[
                                  MenuItem{ text:"Item 1" },
                                  MenuItem{ text:"Item 2" },
                                  MenuItem{ text:"Item 3" }
                              ]
                          }
                      ]
                  }
              ]
          }
      }

        Attachments

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              jteerjfx James Teer (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: