Undecorated JFileChooser?

Hello,

My main applicaiton (extending JFrame) sets undecorated to true (frame.setUndecorated(true), etc..). When I run the app the Frame is indeed undecorated (and I like the way it looks!), however, when I open a JFileChooser the decoration is still the standard (i think its chrome LAF). How do I undecorate the JFileChooser?

Thanks!

M

[362 byte] By [michellecatssssa] at [2007-10-2 8:00:03]
# 1

extend JFileChooser to override

protected JDialog createDialog(Component parent) throws HeadlessException

within this you also extend JoptionPane to override

static Window getWindowForComponent(Component parentComponent)

put it all together and you have an undecorated JFileChooser

Michael_Dunna at 2007-7-16 21:51:42 > top of Java-index,Desktop,Core GUI APIs...
# 2
thank you!!wouldn't it be better, however, if the file chooser just inherited thedecoration from its parent?
michellecatssssa at 2007-7-16 21:51:42 > top of Java-index,Desktop,Core GUI APIs...