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

Karl Tauber commented on NETBEANS-5556:
---------------------------------------

This is a bug in FlatLaf. The JTabbedPane actions `scrollTabsForwardAction` and 
`scrollTabsBackwardAction` did not work as expected.

Fixed in FlatLaf with commit 
[77fc564e|[https://github.com/JFormDesigner/FlatLaf/commit/77fc564e7025ad7a3f54e03266abdaae329f4ae6].]

Will be fixed in NB when a new FlatLaf version becomes available and is used in 
NB.

Another way to fix this would be to not add the MouseWheelListener in class 
CloseButtonTabbedPane if FlatLaf is active. But I know that L&F specific code 
is not welcome...

JTabbedPane in FlatLaf has build in support for (smooth) wheel scrolling, but 
this is disabled if a MouseWheelListener is added to the JTabbedPane.

> Can't wheel scroll in usages when FlatLaf is used
> -------------------------------------------------
>
>                 Key: NETBEANS-5556
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5556
>             Project: NetBeans
>          Issue Type: Bug
>          Components: FlatLaf
>    Affects Versions: 12.3, 12.4
>         Environment: Product Version: Apache NetBeans IDE 12.4-beta2
> Java: 1.8.0_282; OpenJDK 64-Bit Server VM 25.282-b08
> Runtime: OpenJDK Runtime Environment 1.8.0_282-8u282-b08-0ubuntu1~20.10-b08
> System: Linux version 5.8.0-48-generic running on amd64; UTF-8; en_US (nb)
>            Reporter: Tomáš Procházka
>            Assignee: Karl Tauber
>            Priority: Minor
>
> It is possible to use mouse wheel and scroll through opened files in editor.
> Scrolling is broken in Usages tab when FlatLaf Dark Look and Feel is used.
> Steps to reproduce:
> # Open Java source file.
> # Repeatedly invoke Find Usages action until there are more result tabs under 
> Usages panel.
> # Try scrolling with mouse wheel when on tabs with usage results.
> Switching from FlatLaf Dark to another LaF (tried GTK+) restores ability to 
> scroll.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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