<AWT Dev> Review-request for 8143227: Platform-Specific Desktop Features

Yuri Nesterenko yuri.nesterenko at oracle.com
Thu Nov 19 14:41:53 UTC 2015


Hi Alexander,

I tried it with Ubuntu 14.04.3, and it started indeed
from dash or a command line as a gray rectangle. Once I added
isSupported() for every Action and separately for the Taskbar,
it reported, just like jdk9b91, that only OPEN was supported
and nothing else.
Is it OK?

dconf editor in com/canonical/unity/launcher reports
firefox as, I presume, a default browser, but I don't see
BROWSE supported.


Thanks,
-yan

On 11/18/2015 05:01 PM, Alexander Zvegintsev wrote:
> 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