📄 dschatclient.java
字号:
/*
* Created on Jun 1, 2005
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package org.GTADS.client;
import java.util.Vector;
import java.net.*;
import org.GTADS.client.preferences.PreferencesManager;
import org.GTADS.helper.*;
import org.GTADS.usermanager.*;
import java.applet.*;
/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class DSChatClient extends Applet{
private static Vector listOfServers = new Vector();
public static Socket ClientSocket;
public static ClientLoginScreen loginDialog;
public static User clientUser;
public static boolean isApplet;
public static String VERSION_NAME = "Beta Release";
public static Double VERSION_NUMBER = new Double(1.13);
public static void main(String[] args) {
// TODO: Read in Config options from file
isApplet = false;
listOfServers.add("localhost:7000");
Helper.setAsServer(false);
// Read Preferences File
PreferencesManager.getInstance();
// Run locale translations
TranslateManager.getInstance();
// Run function to grab list of servers
ClientLoginScreen.getInstance();
}
public void init() {
// TODO: Read in Config options from file
isApplet = true;
listOfServers.add("localhost:7000");
Helper.setAsServer(false);
// Run function to grab list of servers
ClientLoginScreen.getInstance();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -