Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1034635 // ImageFileFilter

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (5146L) is out of date.

sclass ImageFileFilter extends javax.swing.filechooser.FileFilter {
  settable bool allowDirectories;
  
  public bool accept(File f) {
    if (isDirectory(f)) ret allowDirectories;
    ret isImageFile(f);
  }
  
  public S getDescription() { ret "Images"; }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034635
Snippet name: ImageFileFilter
Eternal ID of this version: #1034635/6
Text MD5: c3734b2ac7551a969f8627a18a066082
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-24 21:18:32
Source code size: 269 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 218 / 298
Version history: 5 change(s)
Referenced in: #1003674 - Standard Classes + Interfaces (LIVE continued in #1034167)