Java Gui Builder
You are here: Home   >   Documentation   >   JGB Elements Documentation   >   MenuBar Element
JGB Element Navigation
tab
ref

MenuBar Element

Group membership: Menu & items

Declares a menu bar that will be added to the enclosing window.

Upon declaration, the parent window will immediately receive a request to attach a menu bar. This means that the last declared menu bar (in document order) will be the one active when the window opens.

Attributes

Name Type Required Description

Example usage

…
<!-- Declare a first menu bar -->
<menuBar id="menuBar-WhenReadingMessage">
    …
</menuBar>

<!-- Declare a second one.  This one will be on-screen when the window opens. -->
<menuBar id="menuBar-WhenBrowsingMessages">
    …
</menuBar>
…
        

Parent element(s)

window.

Child element(s)

menu, methodCall, property, register.
Back to top
SourceForge Logo
Hosted on SourceForge.net
Valid XHTML 1.0!
Valid XHTML 1.0 !
Valid CSS!
Valid CSS !
Code Coverage by Clover
Code Coverage provided by Clover
 |  Home |  License |  Downloads |  Documentation |  Developers |  Mailing Lists |  Dependencies |  Links |  Privacy Policy |  SF Project Home |