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

isFileHidingEnabled return false by default

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 19
    • client-libs
    • None
    • behavioral
    • minimal
    • Minimal - clarifying documentation change - no code changes.
    • Java API
    • SE

      Summary

      Better document that the default value returned by JFileChooser.isFileHidingEnabled() could be derived from the operating system.

      Problem

      The documentation of the JFileChooser.isFileHidingEnabled() says the default value is false, whereas in fact it may be determined by the settings in the underlying operating system.

      Solution

      Update the documentation specifying the default behavior of the method to clarify that the default value may be derived from the underlying operating system.

      Specification

      Class javax.swing.JFileChooser:

           /**
            * Returns true if hidden files are not shown in the file chooser;
      -     * otherwise, returns false.
      +     * otherwise, returns false. The default value of this property may be
      +     * derived from the underlying Operating System.
            *
            * @return the status of the file hiding property
            * @see #setFileHidingEnabled
            */
        public boolean isFileHidingEnabled() {

            tr Tejesh R
            dtoporovsunw Denis Toporov (Inactive)
            Alexey Ivanov, Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: