[kepler-dev] [Bug 2392] New: - MENUS: Top-Level Menu - need centralized way to remove menubar

bugzilla-daemon@ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Wed Mar 29 14:40:45 PST 2006


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2392

           Summary: MENUS: Top-Level Menu - need centralized way to remove
                    menubar
           Product: Kepler
           Version: 1.0.0beta1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: interface
        AssignedTo: brooke at nceas.ucsb.edu
        ReportedBy: brooke at nceas.ucsb.edu
         QAContact: kepler-dev at ecoinformatics.org


Some dialogs need to be shown without menubars (eg Welcome Window, Query Builder
dialog). We therefore need centralized way to remove the menubar, so the code
for these dialogs can do so without havign to worry too much about threading
issues etc (since the Kepler menus are not added until an observing thread sees
that the ptii menus have been completely rendered).

Notes from IRC as a reminder to me:
================================
Mar 27 16:32:30 mbHome	nandita
Mar 27 16:33:15 mbHome	all you need to do is call the JFrame method
"setJMenuBar()" and pass it null as the JMenuBar value
Mar 27 16:33:41 mbHome	the only issue is getting this to happen at the right
time, since the menu bar is added in a separate thread
Mar 27 16:34:09 nandita	ok
Mar 27 16:34:36 mbHome	see src/exp/ptolemy/vergil/basic/MenuMapper.java
Mar 27 16:34:49 mbHome	the public void run() method
Mar 27 16:35:17 mbHome	waits for a frame to display before it removes the ptii
menubar and adds the kepler menubar instead
Mar 27 16:35:32 mbHome	that code will be similar to what you want to do, i think
================================


More information about the Kepler-dev mailing list