<AWT Dev> Review-request for 8143227: Platform-Specific Desktop Features
Alexander Zvegintsev
alexander.zvegintsev at oracle.com
Wed Nov 18 14:01:23 UTC 2015
Hi Alexander,
resending the same webrev under the new ID
https://bugs.openjdk.java.net/browse/JDK-8143227
http://cr.openjdk.java.net/~azvegint/jdk/9/8143227/00/
The approach is pretty the same as it was in Desktop before:
Check feature with isSupported() call.
http://cr.openjdk.java.net/~azvegint/jdk/9/8143227/Snip.java
For testing it on Ubuntu you should create a .desktop file e.g.:
~/.local/share/applications/SomeApp.desktop
[Desktop Entry]
Name=SomeApp
Path=/path/to/your/directory/with/Snip
Exec=/path/to/jdk9/java -Djava.desktop.appName=SomeApp.desktop -jar
Snip.jar
#or Exec=/path/to/jdk9/java -Djava.desktop.appName=SomeApp.desktop Snip
Terminal=false
Type=Application
After that you can run it from dash with specified name.
--
Thanks,
Alexander.
On 11/18/2015 02:52 PM, Alexander Scherbatiy wrote:
> On 11/18/2015 10:12 AM, Alexander Zvegintsev wrote:
>> Hello
>>
>> please review the fix
>> http://cr.openjdk.java.net/~azvegint/jdk/9/8048731/
>> for
>> https://bugs.openjdk.java.net/browse/JDK-8048731
>>
>> This fix provides public support Mac OS X
>> features(com.apple.{eawt,eio}), adds support for various desktop
>> features such as progress indication, dock overlays, dock menus, etc.
>> This is done by extending java.awt.Desktop and adding
>> java.awt.Taskbar classes
>
> Could you provide some code snippets which illustrate how the
> introduced API should be used?
>
> Thanks,
> Alexandr.
>>
>> Linux support is limited by Unity, however this is not the only
>> limitation :) An app should be run via
>> AppName.desktop file [0] with specified system property
>> -Djava.desktop.appName=AppName.desktop
>>
>> [0] https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
>>
>>
>
More information about the awt-dev
mailing list