Script:
<?xml version="1.0"?>
<j:jelly xmlns:j="jelly:core"
xmlns="jelly:swing"
xmlns:log="jelly:log"
xmlns:define="jelly:define"
xmlns:dcc="psg.dcc.jelly.TagLibrary">
<menuBar var="dccMenuBar">
<menu text="File">
<menu text="New">
...
</menuItem>
</menu>
</menuBar>
...
<frame title="DCC" var="dccFrame"
location="${preferredXOrigin}, ${preferredYOrigin}"
size="${preferredWidth}, ${preferredHeight}"
jMenuBar="${dccMenuBar}">
<font family="helvetica" size="14"/>
<windowListener var="event" closing="${onClosing}"/>
</frame>
${dccFrame.show()}
</j:jelly>
Is it a bug that the generated frame does not contain the menubar,
dccMenuBar? I think it is.
When
${dccFrame.setJMenuBar(dccMenuBar)}
is added, the menubar is attached correctly.
-pmr
--
To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>