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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6
    • client-libs

      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.

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

              Created:
              Updated:
              Imported:
              Indexed: