1.2.0 permalink Arrow_down_16x16
  • (make-menubar menubar-items)
Create a menubar containing the given sequence of menu items. The menu
items are described by a map as is detailed in the docstring of the
add-menu-item function.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/swing_utils.clj:142 top

(defn make-menubar
  "Create a menubar containing the given sequence of menu items. The menu
  items are described by a map as is detailed in the docstring of the
  add-menu-item function."
  [menubar-items]
  (let [menubar (JMenuBar.)]
    (doseq [item menubar-items]
      (add-menu-item menubar item))
    menubar))
Vars in clojure.contrib.swing-utils/make-menubar: defn doseq let
Used in 0 other vars

Comments top

No comments for make-menubar. Log in to add a comment.