|
|
@ -58,8 +58,8 @@ import java.util.*; |
|
|
|
@Component |
|
|
|
@Component |
|
|
|
public class RegisterUtil implements ActionListener { |
|
|
|
public class RegisterUtil implements ActionListener { |
|
|
|
|
|
|
|
|
|
|
|
// private String m_jtfServerIP = "172.16.46.58";
|
|
|
|
private String m_jtfServerIP = "172.16.46.58"; |
|
|
|
private String m_jtfServerIP = "192.168.1.11"; |
|
|
|
// private String m_jtfServerIP = "192.168.1.11";
|
|
|
|
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"; |
|
|
@ -143,7 +143,7 @@ public class RegisterUtil implements ActionListener { |
|
|
|
m_frame = new JFrame(); |
|
|
|
m_frame = new JFrame(); |
|
|
|
m_frame.setTitle("查看实时视频"); |
|
|
|
m_frame.setTitle("查看实时视频"); |
|
|
|
|
|
|
|
|
|
|
|
m_frame.setSize(1400,1100) ; |
|
|
|
m_frame.setSize(1000,800) ; |
|
|
|
Toolkit toolkit = Toolkit.getDefaultToolkit(); |
|
|
|
Toolkit toolkit = Toolkit.getDefaultToolkit(); |
|
|
|
int x = (int)(toolkit.getScreenSize().getWidth()-m_frame.getWidth())/2; |
|
|
|
int x = (int)(toolkit.getScreenSize().getWidth()-m_frame.getWidth())/2; |
|
|
|
int y = (int)(toolkit.getScreenSize().getHeight()-m_frame.getHeight())/2; |
|
|
|
int y = (int)(toolkit.getScreenSize().getHeight()-m_frame.getHeight())/2; |
|
|
@ -154,7 +154,7 @@ public class RegisterUtil implements ActionListener { |
|
|
|
m_frame.getContentPane().setLayout(null); |
|
|
|
m_frame.getContentPane().setLayout(null); |
|
|
|
|
|
|
|
|
|
|
|
m_panelVideo = new Panel(); |
|
|
|
m_panelVideo = new Panel(); |
|
|
|
m_panelVideo.setBounds(0, 0, 1400, 1100); |
|
|
|
m_panelVideo.setBounds(0, 0, 1000, 800); |
|
|
|
m_panelVideo.setBackground(Color.BLACK); |
|
|
|
m_panelVideo.setBackground(Color.BLACK); |
|
|
|
m_frame.getContentPane().add(m_panelVideo); |
|
|
|
m_frame.getContentPane().add(m_panelVideo); |
|
|
|
|
|
|
|
|
|
|
|