package com.liuxing.test;
import java.awt.graphicsenvironment;
import java.io.file;
public class test {
private static graphicsenvironment environment;
/**
* @param args
*/
public static void main(string[] args) {
environment = graphicsenvironment.getlocalgraphicsenvironment();
string[] fonts = environment.getavailablefontfamilynames();//获得系统字体名
for(int i = 0;i
system.out.println(fonts[i]);
}
file file=new file("e:\\qqimage");//获取某个目录下的所有文件名
string test[];
test=file.list();
for(int i=0;i
{
system.out.println(test[i]);
}
system.out.println("当前目录=="+system.getproperty("user.dir"));//获取当前路径
}
}