<AWT Dev> <Swing Dev> Public RequestFocusController/AWTAccessor API

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Mon Apr 11 08:26:24 UTC 2016


  Resending the request to awt-dev alias.

  Thanks,
  Alexandr.

On 4/4/2016 4:54 PM, Reto Merz wrote:
> Hello,
>
> Jigsaw will disallow access to internal packages.
> We have written a complex validation and focus management
> implementation
> for our closed-source RIA and maintain it since JRE 1.4.
>
> For this we use some internal API. We have a custom implementation of
> these interfaces:
>
> sun.awt.RequestFocusController
> sun.awt.AWTAccessor.ComponentAccessor
>
> And use this getter and setter:
>
> sun.awt.AWTAccessor#setComponentAccessor(AWTAccessor.ComponentAccessor)
> sun.awt.AWTAccessor#getComponentAccessor()
> sun.awt.AWTAccessor.ComponentAccessor#setRequestFocusController(RequestFocusController)
>
> Please make this API public.
>
> Furthermore we need to call
> java.awt.Component#revalidateSynchronously().
> We do this with reflection. It would be nice to have a public API for
> this.
> Maybe a new static method on AWTAccessor:
> AWTAccessor.revalidateSynchronously(Component)
>
> Best Regards
> Reto Merz
>



More information about the awt-dev mailing list