{"id":20678350,"url":"https://github.com/codecentric/nsmenufx","last_synced_at":"2025-06-10T14:07:50.359Z","repository":{"id":29580465,"uuid":"33120191","full_name":"codecentric/NSMenuFX","owner":"codecentric","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-24T19:48:50.000Z","size":1898,"stargazers_count":127,"open_issues_count":4,"forks_count":27,"subscribers_count":125,"default_branch":"master","last_synced_at":"2024-12-12T09:42:03.814Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codecentric.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-30T11:50:53.000Z","updated_at":"2024-11-17T20:20:21.000Z","dependencies_parsed_at":"2022-08-17T15:56:01.651Z","dependency_job_id":null,"html_url":"https://github.com/codecentric/NSMenuFX","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecentric%2FNSMenuFX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecentric%2FNSMenuFX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecentric%2FNSMenuFX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecentric%2FNSMenuFX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codecentric","download_url":"https://codeload.github.com/codecentric/NSMenuFX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230501172,"owners_count":18236061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T21:19:47.894Z","updated_at":"2024-12-19T21:09:57.237Z","avatar_url":"https://github.com/codecentric.png","language":"Java","readme":"# NSMenuFX\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/61379f5f801c464fb8cf5488d7c9f0c3)](https://www.codacy.com/app/0x4a616e/NSMenuFX?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=codecentric/NSMenuFX\u0026utm_campaign=badger)\n\n---\n**NOTE**\n\nThis repository is currently not receiving any updates.\n\nMore recent versions and new maven central coordinates can be found here: https://github.com/0x4a616e/NSMenuFX\n\n---\n\nA simple library to customize the OS X menu bar to give your JavaFX app\na more [native look and feel](https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/MenuBarMenus.html).  \n\nNSMenuFX helps you to\n\n* Customize the auto-generated application menu of your JavaFX app\n\n![Custom App Menu Screenshot](https://raw.githubusercontent.com/codecentric/NSMenuFX/master/Assets/Screenshots/AppMenu.png)\n\n* Create common OS X menus like the Window menu\n\n![Window Menu Screenshot](https://raw.githubusercontent.com/codecentric/NSMenuFX/master/Assets/Screenshots/WindowMenu.png)\n\n* Quickly create an about menu\n\n![About Menu Screenshot](https://raw.githubusercontent.com/codecentric/NSMenuFX/master/Assets/Screenshots/AboutStage.png)\n\n* Automatically use the same menu bar for all stages\n\nNSMenuFX is now completely written in JavaFX and does no longer use any\nfurther dependencies.\n\n## Maven\n\nAdd the following lines to the dependencies in your `pom.xml`\n\n\t\u003cdependency\u003e\n    \t\u003cgroupId\u003ede.codecentric.centerdevice\u003c/groupId\u003e\n    \t\u003cartifactId\u003ecenterdevice-nsmenufx\u003c/artifactId\u003e\n    \t\u003cversion\u003e2.1.7\u003c/version\u003e\n    \u003c/dependency\u003e\n## Gradle\n\nAdd the following line to the dependencies in your `build.gradle`\n\n\tcompile \"de.codecentric.centerdevice:centerdevice-nsmenufx:2.1.7\"\n\n## Usage Examples\n\nThe following snippet shows a simple example on how to change a menu item in\nthe application menu:\n\n    // Get the toolkit\n    MenuToolkit tk = MenuToolkit.toolkit();\n\n    // Create the default Application menu\n\tMenu defaultApplicationMenu = tk.createDefaultApplicationMenu(\"test\");\n\n\t// Update the existing Application menu\n\ttk.setApplicationMenu(defaultApplicationMenu);\n\n\t// Since we now have a reference to the menu, we can rename items\n\tdefaultApplicationMenu.getItems().get(1).setText(\"Hide all the otters\");\n\nTo set a global menu bar that is used for all stages:\n\n\t// Create a new menu bar\n\tMenuBar bar = new MenuBar();\n\n\t// Add the default application menu\n\tbar.getMenus().add(tk.createDefaultApplicationMenu(\"test\"));\n\n\t// Add some more Menus...\n\n\t// Use the menu bar for all stages including new ones\n\ttk.setGlobalMenuBar(bar);\n\nTo find more usage examples, have a look into the test classes.\n\n## Known issues\n\nNSMenuFX no longer supports changing the title of the application menu at\nruntime. This has always been a bit \"hacky\" as it is not really supported\nby OS X. As a result, the new name was no longer bold faced when it was\nchanged with previous versions of NSMenuFX.\n\nTo set the title of the application menu to the name of your application,\nyou need to bundle the application and set `CFBundleName` in `Info.plist`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecentric%2Fnsmenufx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecentric%2Fnsmenufx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecentric%2Fnsmenufx/lists"}