musicutil.java
来自「这是一个简单的用JMF完成的播放器软件」· Java 代码 · 共 35 行
JAVA
35 行
/*
* MusicUtil.java
*
* Created on 2008年3月29日, 下午2:58
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package com.gjun.huxiaoming;
import java.io.File;
import javax.swing.JFileChooser;
/**
*
* @author Administrator
*/
public class MusicUtil {
/** Creates a new instance of MusicUtil */
public MusicUtil() {
}
public static File getFile(File file)
{
JFileChooser fc = new JFileChooser(file); //显示文件
if (fc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) //选择确认后返回
{
file = fc.getSelectedFile();
}
return file;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?