managestart.java

来自「一个学籍管理系统。」· Java 代码 · 共 49 行

JAVA
49
字号
/*
 * Created on 2004-5-30
 */
/**
 * @author Zhou Qi
 */
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;


public class ManageStart {

	public static void main( String[] args ) {
		JDialog.setDefaultLookAndFeelDecorated(true);
		JFrame.setDefaultLookAndFeelDecorated(true);
		Toolkit.getDefaultToolkit().setDynamicLayout(true);
		System.setProperty("sun.awt.noerasebackground","true");

		try {
			javax.swing.plaf.metal.MetalLookAndFeel.setCurrentTheme( new javax.swing.plaf.metal.DefaultMetalTheme());
			UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
		}  
		catch ( UnsupportedLookAndFeelException e ) {
			System.out.println ("Metal Look & Feel not supported on this platform. \nProgram Terminated");
			System.exit(0);
		}
		catch ( IllegalAccessException e ) {
			System.out.println ("Metal Look & Feel could not be accessed. \nProgram Terminated");
			System.exit(0);
		}
		catch ( ClassNotFoundException e ) {
			System.out.println ("Metal Look & Feel could not found. \nProgram Terminated");
			System.exit(0);
		}   
		catch ( InstantiationException e ) {
			System.out.println ("Metal Look & Feel could not be instantiated. \nProgram Terminated");
			System.exit(0);
		}
		catch ( Exception e ) {
			System.out.println ("Unexpected error. \nProgram Terminated");
			e.printStackTrace();
			System.exit(0);
		}
		JFrame frame = new ManageFrame();
		frame.setVisible(true);
	}
}

⌨️ 快捷键说明

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