<Swing Dev> [9] Review request for 8142966 Wrong cursor position in text components on HiDPI display

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Thu May 5 11:24:30 UTC 2016


On 05.05.16 14:11, Alexandr Scherbatiy wrote:
>> Note that the component GConfig is not necessary the config which is
>> used in drawing, and can be different from the GConfig of Graphics
>> passed to the paint() method.
>     This is still necessary change for the components size calculation
> where graphics transform is not provided.

I did not get it, the component can have one GraphicsCOnfiguration but 
the graphics to which it paints can be from some other place like 
backbuffer in Swing, or something like that. So you calculate the size 
of the component based on one GC, but actually another one will be used.

>     Some of these changes can require the public API updated like
> javax.swing.text.Utilities.drawTabbedText()/getTabbedTextOffset()
> methods which use integer values instead of fractional.
>     I would prefer to fix it in separate issues.

Why not do it it at once? It will be better that push something and then 
rollback.

-- 
Best regards, Sergey.



More information about the swing-dev mailing list