<Swing Dev> Programmatically clicking a JLabel in a JList
Andrej Golovnin
andrej.golovnin at gmail.com
Thu Jun 9 05:44:45 UTC 2016
Hi Pete,
you can either use java.awt.Robot or you can dispatch an event by
calling java.awt.Component.dispatchEvent(AWTEvent).
Best regards,
Andrej Golovnin
On Wed, Jun 8, 2016 at 10:46 PM, Pete Brunet <peter.brunet at oracle.com> wrote:
> To add some accessibility support I need to programmatically click a
> JLabel in a JList. If I can figure out the code path for when this
> happens with a real click I can probably do what I need to do but as of
> yet I haven't figured it out. Does anyone on the list know at least
> part of the code path?
>
> Thanks, Pete
More information about the swing-dev
mailing list