1.获取屏幕大小:Dimension dim=Toolkit.getDefaultToolkit().getScreenSize();
int w=dim.getSize().width;
int h=dim.getSize().height;
2.获取颜色编辑框:Color initialColor=Color.red;
Color newColor=JColorChooser.showDialog(tod, "DialogTitle", initialColor);
3.设置背景色:frame.getContentPane.setBackground(color);
4.window-->preferences-->general-->workspace->other:utf-8
5.安装插件:help-->install new software-->
6.win7 ie 左上角小三角下拉菜单显示历史记录
7.远程桌面命令:mstsc
8.定时启动时间代码:Date timeToRun = new Date(System.currentTimeMillis()+1000);
Timer timer = new Timer();
timer.schedule(new TimerTask(){
@Override
public void run() {
// TODO Auto-generated method stub
System.out.println("timer task");
}}, timeToRun);
9.程序调用执行:
String command="notepad.exe";
Process child = Runtime.getRuntime().exec(command);
10.word中不能显示图片,只能显示一个边框问题:点击左上角图标,弹出界面下方会有word选项
工具--》Word选项--》高级--》显示文档内容,将显示图片框前的选项前的勾去掉。
11.window-preference-java-installed jres-(rt.jar)source attachment...-src.zip位置jdk源代码关联显示
12.cmd下:command /?可以查看command对应帮助