I know there's a way to change the LookAndFeel in individual components. I like the standard Metal L&F but I like the Windows equivalent FileChooser better. I've set the program globally to the System's with "UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());" but I think the program looks terrible this way. If I can, I want the JFileChooser to be set to whatever System's default is. How can I do that?
Also, I read somewhere that it is technically illegal to distribute programs that use windows LookAndFeel. Will I be violating copyright laws or did I miss something?
*Using* the Windows LaF isn't the issue, it's the LaF itself (AFAIK). Your program can use any registered LaF, you just can't distribute the commercial LaF itself without a license.
(With the caveat I could be totally wrong about this.)
Here's a method that I made if anyone's interested. I had some trouble at first but I got it working.
Simply modify the code so that fileString is passed to the file constructor you want to use. Now I gotta get the filter working. Thanks for the help every one!