When opening a JFileChooser with dialogType set to CUSTOM_DIALOG, the standard LaFs show a text field where the user can enter/edit a filename. With WebLaF, the file name is unmodifiable.
Code to reproduce:
public class WeblafTest
{
public static void main(String[] args)
{
javax.swing.SwingUtilities.invokeLater(WeblafTest::createAndShowGUI);
}
private static void createAndShowGUI()
{
WebLookAndFeel.install();
JFrame frame = new JFrame("WeblafTest");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JButton labelSave = new JButton("Save File Chooser");
labelSave.addActionListener(
(event) -> {
JFileChooser chooser = new JFileChooser();
chooser.showSaveDialog(labelSave);
}
);
frame.getContentPane().setLayout(new FlowLayout());
frame.getContentPane().add(labelSave);
JButton labelOpen = new JButton("Open File Chooser");
labelOpen.addActionListener(
(event) -> {
JFileChooser chooser = new JFileChooser();
chooser.showOpenDialog(labelOpen);
});
frame.getContentPane().add(labelOpen);
JButton labelCustom = new JButton("Custom File Chooser");
labelCustom.addActionListener(
(event) -> {
JFileChooser chooser = new JFileChooser();
chooser.showDialog(labelCustom, "Do it!");
}
);
frame.getContentPane().add(labelCustom);
frame.pack();
frame.setVisible(true);
}
}
When opening a JFileChooser with dialogType set to CUSTOM_DIALOG, the standard LaFs show a text field where the user can enter/edit a filename. With WebLaF, the file name is unmodifiable.
Code to reproduce: