Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6400960

Swing File*Filters should extend java.io.File*Filters

    XMLWordPrintable

Details

    • Enhancement
    • Status: Open
    • P4
    • Resolution: Unresolved
    • 6
    • None
    • client-libs

    Description

      Two classes in Swing could implement java.io interfaces, allowing them to be used in both classes.

      javax.swing.filechooser.FileFilter should implement the java.io.FileFilter interface.

      javax.swing.filechooser.FileNameExtensionFilter should implement java.io.FilenameFilter. Note that FileNameExtensionFilter only has accept(File). Making it implement the interface will require an accept(File, String), which is simple to add.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Imported:
              Indexed: