# Please Help: How can I hide the Menubar using Script

**URL:** <https://forum.inductiveautomation.com/t/please-help-how-can-i-hide-the-menubar-using-script/43281>\
**Category:** Ignition\
**Tags:** vision, scripting\
**Created:** [February 11, 2021, 4:01am UTC](https://forum.inductiveautomation.com/t/please-help-how-can-i-hide-the-menubar-using-script/43281 "2021-02-11T04:01:39Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 11, 2021, 3:11pm UTC](https://forum.inductiveautomation.com/t/please-help-how-can-i-hide-the-menubar-using-script/43281/7 "2021-02-11T15:11:55Z")

</div>

You could adapt the following technique to set an empty JMenuBar....

> [@How to change Windows Bar at top of Example Project?](http://forum.inductiveautomation.com/t/how-to-change-windows-bar-at-top-of-example-project/2409/8):
>
> Automatic dropdown navigation menu (only adds folders one level deep): from javax.swing import SwingUtilities, JMenu, JMenuBar, JMenuItem from functools import partial window = system.nav.getWindow("somewindow") root = SwingUtilities.getRoot(window) menu = root.getJMenuBar() navmenu = JMenu("Navigation"); def handleSelect(event, target): system.nav.swapTo(target) trees = {} leaves = [] for window in system.gui.getWindowNames(): winsplit = window.split('/') if winsplit[0] != 'Nav': …

_ **Not** _ a supported thing to do. You'll have to get familiar with Java Swing's menu architecture.

---

_[View the full topic](https://forum.inductiveautomation.com/t/please-help-how-can-i-hide-the-menubar-using-script/43281)._
