I have created an applet that opens a JFileChooser to select a file on the click of a JButton. It works fine when I run it in Eclipse. When I embed
JFileChooser
JButton
It's very likely that your SecurityManager isn't allowing it.
In FireFox, you can check the java console by going to Tools > Java Console. Firefox should already have it set up.