<AWT Dev> Same Java app, two platforms: Tab vs. Right arrow for moving to next radio button

Alexander Zvegintsev alexander.zvegintsev at oracle.com
Thu Apr 23 15:16:51 UTC 2015

Hello Jonathan,

I guess that we are speaking about navigating between JRadioButtons in a 
same ButtonGroup.
The behavior of JRadioButton was changed in 8u40 by [1]. And it seems 
that arrow navigation doesn't
work under GTK L&F. Probably your app was launched under different Look 
and Feels(e.g.
on Ubuntu with Metal, on Fedora with GTK L&F).
So you can try to launch it with L&F specified from command line, like:

Anyway it doesn't look good, so feel free to file[2] an issue with a 
sample code to reproduce.

[1] https://bugs.openjdk.java.net/browse/JDK-8033699
[2] http://bugreport.java.com/bugreport



On 04/22/2015 07:54 PM, Jonathan Kamens wrote:
> We are trying to implement some automation with a third-party app via 
> using "xdotool" to send X events to the app.
> One of the things we need to do with the app is to switch focus from 
> one radio button to another.
> When we run the app on Ubuntu 14 (Unity desktop), the tab key can be 
> used to switch to the next radio button, and the right arrow can /not/ 
> be used. In contrast, when we run the app on Fedora 21 (GNOME 3 
> desktop), the right arrow key can be used and the tab key can /not/ be 
> used. When I say "can not be used," I mean it does nothing.
> We're using openjdk 8 in both cases. I observed the same behavior, at 
> least the Ubuntu half of it, in openjdk 7 as well.
> Since it's exactly the same app in both cases, it seems unlikely that 
> it's the app that's responsible for the difference in behavior between 
> the two platforms, which is why I'm coming here first to ask about it 
> rather than going to the author of the app.
> Any insights anyone can offer into why the two platforms behave 
> differently and what we can do to make them behave the same would be 
> greatly appreciated.
> Thanks,
> Jonathan Kamens 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20150423/777c760a/attachment.html>

More information about the awt-dev mailing list