[ 
https://issues.apache.org/jira/browse/NETBEANS-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16719012#comment-16719012
 ] 

Eirik Bakke commented on NETBEANS-49:
-------------------------------------

Yes, this patch was Windows-specific. There are two options for making it work 
for other LAFs:
1) Use reflection to make the patch LAF-independent, like in 
http://mail.openjdk.java.net/pipermail/awt-dev/2017-January/012507.html . The 
problem is that this particular reflection trick might be disallowed in future 
Java versions (at least according to a warning message that is printed by the 
JRE when this approach is used).
2) Make a new custom ScrollPaneUI class for each LAF that is to be supported, 
extending from whatever LAF-specific ScrollPaneUI class is used in said LAF. 
For Darcula, this requires copying the code in this patch to the Darcula 
repository.

I'm not sure which approach is better--in particular, I don't know exactly how 
likely the reflection-based approach (approach 1) is to fail in future Java 
versions.

Approach 1 would be a change in NetBeans only, while Approach 2 would require a 
change on the Darcula side, and some code duplication.


> Please add smooth scrolling 
> ----------------------------
>
>                 Key: NETBEANS-49
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-49
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: platform - Window System
>            Reporter: Christian Lenz
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 10.0
>
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> Inside the editor, when I scroll with my touchpad to the bottom, it jumps 9 
> lines to the next, this is a lot. I don't like such gappings I would like to 
> have a smooth stepless scrolling, like in chrome or other windows native 
> apps. Please add this for horizontal and vertical scrolling, it will be much 
> better. Not only in editors, it should be available everywhere, where we have 
> scrollbars.
> Regards
> Chris



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to