agentfilechooser.java
来自「JAVA 实现虹膜识别(完整)」· Java 代码 · 共 39 行
JAVA
39 行
package IrisRecog;
/**
* AgentFileChooser.java
*
* Extends the JFileChooser swing component by adding an image preview pane
* to the right and setting the filter to select only jpg/jpeg images.
*
* @author Team 6: Andy Bare, Imran Chaugule, Michael Huffman, Matt Pearson, Catherine Schell
* @version 1.0.0
*
* CSC 480 Section 2
* Fall 2005
* 10/1/05
*/
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.filechooser.*;
public class AgentFileChooser extends JFileChooser
{
public AgentFileChooser()
{
//Add the custom agent fiel filter
this.addChoosableFileFilter(new AgentFilter());
this.setAcceptAllFileFilterUsed(false);
//Set default directory to agents folder
try
{
this.setCurrentDirectory(new File("../agents"));
}
catch(Exception e) { }
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?