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