public Servers() {

    setLayout(new BorderLayout(0, 0));
    tabbedPane = new JTabbedPane(JTabbedPane.TOP);
    tabbedPane.setBackground(Color.WHITE);
    this.setBackground(Color.WHITE);
    add(tabbedPane, BorderLayout.CENTER);
    ServerList list = new ServerList(this);
    tabbedPane.addTab("Server List", null, list, null);
    // tabbedPane.addTab("Server test", null, new Server(), null);
    list.retriveServerList();
  }
 public Applet_Sub1_Sub1() {
   gameIP = ServerList.getWorld();
   gamePort = 43594;
   aString618 = "";
   aString619 = "";
   aByteArray621 = new byte[5000];
   aLongArray625 = new long[200];
   anIntArray626 = new int[200];
   aLongArray628 = new long[50];
   anIntArray639 = new int[100];
 }
Example #3
0
 /**
  * 获取服务器列表.
  *
  * @param token 凭证.
  * @return 服务器地址列表,如果访问失败则返回空的列表.
  */
 public static String[] getServerList(String token) {
   String[] result = ServerList.getServerList(token);
   if (result == null) return new String[0];
   return result;
 }