Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SWT on OS X: change application name

Tags:

java

macos

swt

My SWT-based Java application shows SWT as application name in the application menu. I've tried changing it in Info.plist and using Display.setAppName("myApp") but it does not help. What else can I try?

BTW, I'm starting the application using a shell script which is located at MyApp.app/Contents/MacOS/MyApp.

like image 923
Mot Avatar asked Sep 04 '25 03:09

Mot


1 Answers

Display.setAppName() should work, at the condition that it is called before any Display instance is created (either by you or implicitly, e.g. if you call Display.getDefault()).

like image 85
Jean-Philippe Pellet Avatar answered Sep 05 '25 21:09

Jean-Philippe Pellet