How would I go about changing the hover text over icon in doc? (Java)

萝らか妹 提交于 2019-12-24 07:23:56

问题


Okay. I have a gui with a title called "My Java Application". When I minimize it to my doc and hover over the icon, it just says "java", not "My Java Application". How would I fix that?

P.S. I am using a Macintosh computer.


回答1:


There's apparently a command line option for this on the Mac:

-Xdock:name="YourNameHere"

There's also some more information here:

  • Programatically setting the dock:name Java Mac OS X JVM property
  • Native Swing Menu Bar Support For MacOS X In Java



回答2:


  1. Close the app if it's running

  2. Open the app location in Finder. Right click icon in Doc - Choose Options/Show in Finder.

  3. Right click the App and rename to the new name

  4. Remove the app from the doc. Right click icon in Doc, Options/Remove from Doc

  5. Click on the app to launch from the finder window.

  6. The new app icon when launched - will have the new name as the hover text
  7. Right click the app icon, choose Options and Select Keep in Doc. Position the icon to your convenient location
  8. Close the app and mouse over the icon and watch the new name appearing as hover text


来源:https://stackoverflow.com/questions/7178252/how-would-i-go-about-changing-the-hover-text-over-icon-in-doc-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!