| # JFileChooser | Other Swing Changes

> ## New JFileChooser isAcceptAllFileFilterUsed Property

> This property allows control of the AcceptAll (*.*) file filter, which is added to the choosable file filters combo box by default.

> See:

> `
> - public static final String ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY
> - public void setAcceptAllFileFilterUsed(boolean b)
> - public boolean isAcceptAllFileFilterUsed()
> `

> ## Support for removing the OK and Cancel Buttons

> The normal way to bring a JFileChooser is with the dialog creation utilities. However, since a JFileChooser is a JComponent, it can just as easily be embedded in a container. When this is done, it will oftentimes be the case that the developer will want control of any control buttons (ok, cancel, other) and not want the default Accept and Cancel buttons to appear. The following property will allow the developer to specify if the control buttons should be shown or not by the file chooser.

> See:

> `
> - public boolean getControlButtonsAreShown()
> - public void setControlButtonsAreShown(boolean b)
> `

Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved. Please send comments to: swing-feedback@java.sun.com. This is not a subscription list. | Java Software