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

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

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: 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

            • Assignee:
              rupashka Pavel Porvatov (Inactive)
              Reporter:
              shickeysunw Shannon Hickey (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: