⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.java

📁 JAVA编的聊天和文件发送程序
💻 JAVA
字号:
/*
 * Main.java
 *
 * Created on 2007年10月15日, 下午1:33
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package chat;
import chat.Chat;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import org.omg.CORBA.COMM_FAILURE;

/** Creates a new instance of Main */
public class Main
{
    
    public static void main(String[] args)
    {
       
        javax.swing.LookAndFeel laf=new com.sun.java.swing.plaf.windows.WindowsLookAndFeel();
        try
        {
            javax.swing.UIManager.setLookAndFeel(laf);
            Chat f=new Chat();
            javax.swing.SwingUtilities.updateComponentTreeUI(f);
            f.setLocationRelativeTo(null);
            f.setVisible(true);
        }
        catch(UnsupportedLookAndFeelException ex)
        {
            ex.printStackTrace();
        }
    }
}

⌨️ 快捷键说明

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