< prev index next >

src/java.desktop/share/classes/java/awt/FileDialog.java

Print this page




 108      * Represents whether the file dialog allows the multiple file selection.
 109      *
 110      * @serial
 111      * @see #setMultipleMode
 112      * @see #isMultipleMode
 113      * @since 1.7
 114      */
 115     private boolean multipleMode = false;
 116 
 117     /*
 118      * The filter used as the file dialog's filename filter.
 119      * The file dialog will only be displaying files whose
 120      * names are accepted by this filter.
 121      * This variable may be {@code null}.
 122      *
 123      * @serial
 124      * @see #getFilenameFilter()
 125      * @see #setFilenameFilter()
 126      * @see FileNameFilter
 127      */

 128     FilenameFilter filter;
 129 
 130     private static final String base = "filedlg";
 131     private static int nameCounter = 0;
 132 
 133     /*
 134      * JDK 1.1 serialVersionUID
 135      */
 136      private static final long serialVersionUID = 5035145889651310422L;
 137 
 138 
 139     static {
 140         /* ensure that the necessary native libraries are loaded */
 141         Toolkit.loadLibraries();
 142         if (!GraphicsEnvironment.isHeadless()) {
 143             initIDs();
 144         }
 145     }
 146 
 147     static {




 108      * Represents whether the file dialog allows the multiple file selection.
 109      *
 110      * @serial
 111      * @see #setMultipleMode
 112      * @see #isMultipleMode
 113      * @since 1.7
 114      */
 115     private boolean multipleMode = false;
 116 
 117     /*
 118      * The filter used as the file dialog's filename filter.
 119      * The file dialog will only be displaying files whose
 120      * names are accepted by this filter.
 121      * This variable may be {@code null}.
 122      *
 123      * @serial
 124      * @see #getFilenameFilter()
 125      * @see #setFilenameFilter()
 126      * @see FileNameFilter
 127      */
 128     @SuppressWarnings("serial") // Not statically typed as Serializable
 129     FilenameFilter filter;
 130 
 131     private static final String base = "filedlg";
 132     private static int nameCounter = 0;
 133 
 134     /*
 135      * JDK 1.1 serialVersionUID
 136      */
 137      private static final long serialVersionUID = 5035145889651310422L;
 138 
 139 
 140     static {
 141         /* ensure that the necessary native libraries are loaded */
 142         Toolkit.loadLibraries();
 143         if (!GraphicsEnvironment.isHeadless()) {
 144             initIDs();
 145         }
 146     }
 147 
 148     static {


< prev index next >