Replace MaterialDesign Laf
See whether replacing MaterialDesignLaf with FlatLaf is viable.
Whilst MDLaf can look pretty nice, it can be bothersome at times with how it behaves.
If FlatLaf is easier to customize and implement, switch
https://github.com/JFormDesigner/FlatLaf
https://www.formdev.com/flatlaf/
It even has a Theme Editor!!!!! Yooooooooo what the https://www.formdev.com/flatlaf/theme-editor/