警告的具体信息
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.formdev.flatlaf.ui.FlatFileChooserUI$FlatShortcutsPanel (file:/C:/xxx/repository/com/formdev/flatlaf/2.3/flatlaf-2.3.jar) to method sun.awt.shell.ShellFolder.get(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.formdev.flatlaf.ui.FlatFileChooserUI$FlatShortcutsPanel
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
出问题的组件
JFileChooser
开发环境
IDEA
JDK 11
flatlaf.jar - Flat Look and Feel
解决方法
flatlaf 换个低版本尝试一下,亲测2.2版本没问题