newexplorerapp.java

来自「Java资源管理器」· Java 代码 · 共 50 行

JAVA
50
字号

package app;

import java.awt.Color;
import java.awt.Font;

import javax.swing.UIManager;
import dao.*;
import mvc.*;
/*
 * Created on 2005-5-6
 * Finishing CodeFans.net
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */

/**
 * @author Administrator
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class NewExplorerApp {
    public static void main(String[] args){
		try{
			UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
			Font font = new Font("Serif",0,12);
			Font textFont = new Font("Serif",0,16);
			UIManager.put("ComboBox.font",font);
			UIManager.put("List.font",font);
			UIManager.put("Button.font",font);
			UIManager.put("Button.foreground",Color.red);
			UIManager.put("RadioButton.font",font);
			UIManager.put("Label.font",font);
			UIManager.put("Menu.font",font);
			UIManager.put("MenuItem.font",font);
			UIManager.put("Panel.font",font);
			UIManager.put("TitledBorder.font",font);
			UIManager.put("JTextArea.font",Color.red);
		}
		catch(Exception e){
			e.printStackTrace();
		}
		FileDAO fdao = new FileDAO();
		FileModelImpl model = new FileModelImpl(fdao);
		FileViewImpl view = new FileViewImpl(model);
		FileControllerImpl controller = new FileControllerImpl(view,model);
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?