
How can I access the JPopupMenu that is invoked from a JFileChooser and customize that (background, foreground, borders)? The issue is that the popup is created inside sun.swing.FilePane, which I cannot access because the sun.* packages are not accessible by default. Developing a new FileChooser is not feasible as a lot of work has already been done.
Do you have any ideas?
I tried iterating through nested components, but since I couldn't import FilePane, it didn't yield any results.
sun.swing.FilePaneextendsJPanel, you can search thisJPanelinstead and get theJPopupMenu.