1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.netsdk.demo.frame;
 
import javax.swing.SwingUtilities;
 
import com.netsdk.common.SwitchLanguage;
import com.netsdk.lib.NetSDKLib;
 
 
public class Main {  
    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                if(NetSDKLib.NETSDK_INSTANCE != null
                    && NetSDKLib.CONFIG_INSTANCE != null) {
                    System.setProperty("java.awt.im.style", "on-the-spot"); // 去除中文输入弹出框
                    SwitchLanguage demo = new SwitchLanguage();
                    demo.setVisible(true);
                }
            }
        });    
    }
}