|
|
@ -15,6 +15,8 @@ import com.sun.jna.Structure; |
|
|
|
import com.sun.jna.ptr.IntByReference; |
|
|
|
import com.sun.jna.ptr.IntByReference; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
|
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
|
|
|
|
import org.springframework.core.env.Environment; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
import sdk.java.common.GlobalTool; |
|
|
|
import sdk.java.common.GlobalTool; |
|
|
|
import sdk.java.lib.DataUtils; |
|
|
|
import sdk.java.lib.DataUtils; |
|
|
@ -57,10 +59,7 @@ import java.util.*; |
|
|
|
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
@Component |
|
|
|
@Component |
|
|
|
public class RegisterUtil implements ActionListener { |
|
|
|
public class RegisterUtil implements ActionListener { |
|
|
|
//linux服务器
|
|
|
|
private String m_jtfServerIP = ""; |
|
|
|
// private String m_jtfServerIP = "192.168.1.219";
|
|
|
|
|
|
|
|
//公司windows服务器
|
|
|
|
|
|
|
|
private String m_jtfServerIP = "172.16.46.58"; |
|
|
|
|
|
|
|
private String m_jtfServerPort = "8020"; |
|
|
|
private String m_jtfServerPort = "8020"; |
|
|
|
private String m_jtfDevUsername = "admin"; |
|
|
|
private String m_jtfDevUsername = "admin"; |
|
|
|
private String m_jtfDevPassword = "admin123"; |
|
|
|
private String m_jtfDevPassword = "admin123"; |
|
|
@ -127,9 +126,10 @@ public class RegisterUtil implements ActionListener { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Create the application. |
|
|
|
* Create the application. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public RegisterUtil() |
|
|
|
public RegisterUtil(String m_jtfServerIP) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
this.m_jtfServerIP = m_jtfServerIP; |
|
|
|
|
|
|
|
System.out.println("this.m_jtfServerIP="+this.m_jtfServerIP); |
|
|
|
String os = System.getProperty("os.name"); |
|
|
|
String os = System.getProperty("os.name"); |
|
|
|
if(os.toLowerCase().startsWith("win")){ |
|
|
|
if(os.toLowerCase().startsWith("win")){ |
|
|
|
initialize(); |
|
|
|
initialize(); |
|
|
@ -1096,7 +1096,7 @@ public class RegisterUtil implements ActionListener { |
|
|
|
EventQueue.invokeLater(new Runnable() { |
|
|
|
EventQueue.invokeLater(new Runnable() { |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
RegisterUtil window = new RegisterUtil(); |
|
|
|
RegisterUtil window = new RegisterUtil(""); |
|
|
|
window.m_frame.setVisible(true); |
|
|
|
window.m_frame.setVisible(true); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
|