msface.java

来自「一个类似QQ表情的Java程序」· Java 代码 · 共 34 行

JAVA
34
字号
import Src.MSFaceFrame;
import javax.swing.*;
import java.awt.*;
import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;

public class MSFace
{  public static void main(String[] args)
   { 
	   //打开注释可以改变观感

	   /*JDialog.setDefaultLookAndFeelDecorated(true);
        JFrame.setDefaultLookAndFeelDecorated(true);
        Toolkit.getDefaultToolkit().setDynamicLayout(true);
        System.setProperty("sun.awt.noerasebackground","true");
	String laf ="com.sun.java.swing.plaf.motif.MotifLookAndFeel";
	//String laf ="com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
	//String laf ="javax.swing.plaf.metal";

        try {
			UIManager.setLookAndFeel(new WindowsLookAndFeel());
            
        }
        catch ( UnsupportedLookAndFeelException e ) {
            System.out.println ("Metal Look & Feel not supported on this platform. \nProgram Terminated");
            System.exit(0);
        }catch (Exception exc) {
	    System.err.println("Error loading " + laf + ": " + exc);
	}*/


	  JFrame frame = new MSFaceFrame();
      frame.setVisible(true);
   }
}

⌨️ 快捷键说明

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